Skip to content

Commit 3ff3e87

Browse files
authored
Merge pull request #120 from renproject/update-bitcoin-client
Fix: Set fee_rate
2 parents 192536d + e589cbb commit 3ff3e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/bitcoin/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sleep 20
99
# Print setup
1010
echo "BITCOIN_ADDRESS=$ADDRESS"
1111

12-
# Create wallet
1312
/app/bin/bitcoin-cli createwallet "testwallet"
1413

14+
1515
# Import the address
1616
/app/bin/bitcoin-cli -regtest importaddress $ADDRESS
1717

@@ -28,6 +28,6 @@ do
2828
/app/bin/bitcoin-cli -regtest generatetoaddress 1 $ADDRESS
2929
sleep 5
3030
# send tx to own address while paying fee to the miner
31-
/app/bin/bitcoin-cli -regtest sendtoaddress $ADDRESS 1 "" "" true
31+
/app/bin/bitcoin-cli -regtest -named sendtoaddress address=$ADDRESS amount=0.1 subtractfeefromamount=true fee_rate=1
3232
sleep 5
3333
done

0 commit comments

Comments
 (0)