bitcoind: use fundrawtransaction rather than sendtoaddress and -nowalletbroadcast

Luke-Jr points out this is the Right Way to do these things.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-04-11 16:40:53 +09:30
parent 587cda0ab8
commit 95340aa03f
4 changed files with 159 additions and 58 deletions

View File

@@ -15,7 +15,6 @@ mkdir $DATADIR
cat > $DATADIR/bitcoin.conf <<EOF
regtest=1
testnet=0
walletbroadcast=0
EOF
$DAEMON &