diff options
Diffstat (limited to 'test/btc/hell.sh')
-rw-r--r-- | test/btc/hell.sh | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/test/btc/hell.sh b/test/btc/hell.sh index d7c3d51..f8862d2 100644 --- a/test/btc/hell.sh +++ b/test/btc/hell.sh @@ -35,17 +35,11 @@ echo " OK" echo -n "Perform fork and check btc-wire hard error:" gateway_up -btc2_fork +btc2_fork 5 check_balance 9.99579209 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 "Generate conflict:" restart_btc -minrelaytxfee=0.0001 btc-wire-utils -d $BTC_DIR abandon client @@ -54,14 +48,10 @@ next_btc check_balance 9.99457382 0.00540000 echo " OK" -echo -n "Check btc-wire never heal on restart:" -btc_wire -sleep 1 +echo -n "Check btc-wire have not read the conflicting transaction:" +sleep 5 # Wait for reconnection # Wait for reconnection gateway_down check_balance 9.99457382 0.00540000 -echo " OK" - -echo -n "Check btc-wire have not read the conflicting transaction:" check_delta "incoming" "" echo " OK" @@ -93,23 +83,16 @@ btc2_deco echo -n "Generate bounce:" $BTC_CLI -rpcwallet=client sendtoaddress $WIRE 0.042 > /dev/null next_btc -sleep 1 check_balance 9.99998674 0.00001000 echo " OK" echo -n "Perform fork and check btc-wire hard error:" gateway_up -btc2_fork +btc2_fork 5 check_balance 9.95799859 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 "Generate conflict:" restart_btc -minrelaytxfee=0.0001 btc-wire-utils -d $BTC_DIR abandon client @@ -118,16 +101,10 @@ next_btc check_balance 9.94597382 0.05400000 echo " OK" -sleep 5 - -echo -n "Check btc-wire never heal on restart:" -btc_wire -sleep 1 +echo -n "Check btc-wire have not read the conflicting transaction:" +sleep 5 # Wait for reconnection gateway_down check_balance 9.94597382 0.05400000 -echo " OK" - -echo -n "Check btc-wire have not read the conflicting transaction:" check_delta "incoming" "" echo " OK" |