URI: 
       tregtest: wait_for_balance - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 7bd29ed8fcb900ff312e005adb35e352d8230629
   DIR parent 9d2629c5c3e6be65c69820be697d10eb20223297
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed,  5 Feb 2020 08:56:58 +0100
       
       regtest: wait_for_balance
       
       Diffstat:
         M electrum/tests/regtest/regtest.sh   |       9 ++++++---
       
       1 file changed, 6 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/electrum/tests/regtest/regtest.sh b/electrum/tests/regtest/regtest.sh
       t@@ -139,6 +139,8 @@ fi
        
        
        if [[ $1 == "breach" ]]; then
       +    wait_for_balance alice 1
       +    echo "alice opens channel"
            bob_node=$($bob nodeid)
            channel=$($alice open_channel $bob_node 0.15)
            new_blocks 3
       t@@ -161,11 +163,12 @@ fi
        
        if [[ $1 == "redeem_htlcs" ]]; then
            $bob setconfig lightning_settle_delay 10
       -    # alice opens channel
       +    wait_for_balance alice 1
       +    echo "alice opens channel"
            bob_node=$($bob nodeid)
            $alice open_channel $bob_node 0.15
       -    new_blocks 6
       -    sleep 10
       +    new_blocks 3
       +    wait_until_channel_open alice
            # alice pays bob
            invoice=$($bob add_lightning_request 0.05 -m "test")
            $alice lnpay $invoice --timeout=1 || true