diff options
Diffstat (limited to 'test/btc/reorg.sh')
-rw-r--r-- | test/btc/reorg.sh | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/test/btc/reorg.sh b/test/btc/reorg.sh index 3e4da8f..a0de12d 100644 --- a/test/btc/reorg.sh +++ b/test/btc/reorg.sh @@ -41,25 +41,14 @@ echo " OK" echo -n "Perform fork and check btc-wire hard error:" gateway_up -btc2_fork +btc2_fork 22 check_balance 9.99826299 0.00000000 gateway_down echo " OK" -echo -n "Check btc-wire hard error on restart:" -btc_wire -sleep 1 -gateway_down -echo " OK" - echo -n "Recover orphaned transactions:" -next_btc +next_btc 6 # More block needed to confirm check_balance 9.99826299 0.00165000 -echo " OK" - -echo -n "Check btc-wire heal on restart:" -btc_wire -sleep 1 gateway_up echo " OK" @@ -83,19 +72,20 @@ echo " OK" echo -n "Perform fork and check btc-wire still up:" gateway_up -btc2_fork +btc2_fork 22 check_balance 9.99826299 0.00146311 gateway_up echo " OK" echo -n "Recover orphaned transactions:" -next_btc +next_btc 6 # More block needed to confirm check_balance 9.99842799 0.00146311 echo " OK" echo "----- Handle reorg bounce -----" clear_wallet +check_balance "*" 0.00000000 echo "Loose second bitcoin node" btc2_deco @@ -105,20 +95,20 @@ for n in `$SEQ`; do $BTC_CLI -rpcwallet=client sendtoaddress $WIRE 0.000$n > /dev/null mine_btc done -next_btc +next_btc 6 # More block needed to confirm sleep 1 check_balance "*" 0.00011000 echo " OK" echo -n "Perform fork and check btc-wire hard error:" gateway_up -btc2_fork +btc2_fork 22 check_balance "*" 0.00000000 gateway_down echo " OK" echo -n "Recover orphaned transactions:" -next_btc +next_btc 6 # More block needed to confirm check_balance "*" 0.00011000 echo " OK" |