Skip to content

Instantly share code, notes, and snippets.

@BlinkyStitt
BlinkyStitt / gist:7653419
Created November 26, 2013 04:21
libbitcoin mavericks build failure
[bwstitt:~] 1 $ brew install wysenynja/bitcoin/libbitcoin --verbose
==> Cloning https://github.com/spesmilo/libbitcoin.git
git --git-dir /Library/Caches/Homebrew/libbitcoin--git/.git status -s
Updating /Library/Caches/Homebrew/libbitcoin--git
git config remote.origin.url https://github.com/spesmilo/libbitcoin.git
git config remote.origin.fetch +refs/tags/v1.4:refs/tags/v1.4
git --git-dir /Library/Caches/Homebrew/libbitcoin--git/.git rev-parse -q --verify v1.4
git checkout -f v1.4
HEAD is now at 0cd3b04... incorrect version number in version.hpp - corrected it.
git reset --hard v1.4
@BlinkyStitt
BlinkyStitt / gist:7781832
Created December 4, 2013 03:22
libbitcoin/obelisk/sx on OS X Mavericks
# I'm not sure any of this is right, but assuming you have a blockchain from bitcoin-qt or bitcoind...
$ brew tap homebrew/versions
$ brew tap WyseNynja/bitcoin
$ brew prune
$ brew install libbitcoin-tools sx
$ cd /usr/local/var
$ mkdir -p bitcoin/worker
$ cd bitcoin
$ tmux
@BlinkyStitt
BlinkyStitt / libbitcoin v1.4 brew patch
Last active December 30, 2015 05:49
get osx working
diff --git a/configure.ac b/configure.ac
index 5ad6e6d..c07566f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,6 +64,9 @@ AC_ARG_WITH([pkgconfigdir], AS_HELP_STRING([--with-pkgconfigdir=PATH],
[pkgconfigdir="$withval"], [pkgconfigdir='${libdir}/pkgconfig'])
AC_SUBST([pkgconfigdir])
+AC_SUBST(EXTRA_CFLAGS)
+AC_SUBST(EXTRA_LDFLAGS)
diff --git a/src/keystore.cpp b/src/keystore.cpp
index 46402ea..b5657c8 100644
--- a/src/keystore.cpp
+++ b/src/keystore.cpp
@@ -56,3 +56,16 @@ bool CBasicKeyStore::GetCScript(const CScriptID &hash, CScript& redeemScriptOut)
return false;
}
+bool CBasicKeyStore::AddWatchOnly(const CTxDestination &dest)
+{
@BlinkyStitt
BlinkyStitt / bdb4 and openssl paths for old osx
Last active January 1, 2016 08:49
old osx bitcoin brew patch
diff --git a/src/makefile.osx b/src/makefile.osx
index 50279fd..6ab92b1 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -7,18 +7,22 @@
# Originally by Laszlo Hanyecz (solar@heliacal.net)
CXX=llvm-g++
DEPSDIR=/opt/local
+DB4DIR=$(DEPSDIR)/opt/berkeley-db4
@BlinkyStitt
BlinkyStitt / gist:efa3e2bd87c7d12a5f9c
Last active August 29, 2015 14:01
vagrant 1.6.0 shell error
$ vagrant -v
Vagrant 1.6.0
$ vagrant plugin list
vagrant-aws (0.4.1)
vagrant-login (1.0.1, system)
vagrant-share (1.0.1, system)
vagrant-triggers (0.3.0)
vagrant-vbguest (0.10.0)
@BlinkyStitt
BlinkyStitt / gist:abb84390c7ca285d671f
Created April 23, 2015 01:06
vagrant ssh fails while manual ssh works
DEBUG ssh: Checking key permissions: /home/uber/.ssh/id_rsa
INFO ssh: Attempting SSH connection...
INFO ssh: Attempting to connect to SSH...
INFO ssh: - Host: 54.71.167.14
INFO ssh: - Port: 22
INFO ssh: - Username: uber
INFO ssh: - Password? false
INFO ssh: - Key Path: ["/home/uber/.ssh/id_rsa"]
DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2015-04-23T00:59:49.475268 #51503] DEBUG -- net.ssh.transport.session[17bfdd0]: establishing connection to 54.71.167.14:22
#!/bin/sh
bitcoin-cli getpeerinfo | jq -r .[].subver | sort | uniq -c | sort -nr
#!/usr/bin/env bash
set -e
COINCLIENT=bitcoin-cli
function displaytime {
local T=$1
local D=$((T/60/60/24))
local H=$((T/60/60%24))
@BlinkyStitt
BlinkyStitt / elparts.md
Last active July 11, 2016 23:07
EL Parts