diff options
Diffstat (limited to 'script/test_btc_wire.sh')
-rw-r--r-- | script/test_btc_wire.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/script/test_btc_wire.sh b/script/test_btc_wire.sh index 7795a0e..442dcf3 100644 --- a/script/test_btc_wire.sh +++ b/script/test_btc_wire.sh @@ -33,25 +33,33 @@ echo "Start gateway" gateway echo "" -echo "---- Gateway API -----" +echo "---- Receive -----" echo -n "Making wire transfer to exchange:" btc-wire-cli -d $BTC_DIR transfer 0.00004 next_btc -check_balance 9.99995209 1.00004000 +check_balance 9.99995209 0.00004000 echo " OK" echo -n "Requesting exchange incoming transaction list:" taler-exchange-wire-gateway-client -b $BANK_ENDPOINT -i | grep BTC:0.00004 > /dev/null echo " OK" +echo "---- Bounce-----" +$BTC_CLI -rpcwallet=client sendtoaddress $WIRE 0.00042 +next_btc +check_balance 9.99993883 0.00005000 + +echo "---- Send -----" + echo -n "Making wire transfer from exchange:" taler-exchange-wire-gateway-client \ -b $BANK_ENDPOINT \ -C payto://bitcoin/$CLIENT \ -a BTC:0.00002 > /dev/null -next_btc -check_balance 9.99997209 1.00001801 +sleep 0.3 +mine_btc +check_balance 9.99995883 0.00002801 echo " OK" echo -n "Requesting exchange's outgoing transaction list:" |