lightningd: broadcast transaction once we're told to.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-03-07 11:33:55 +10:30
parent b937793555
commit 9eeb76e185
2 changed files with 85 additions and 4 deletions

View File

@@ -40,6 +40,13 @@ lcli1 addfunds $FUND_INPUT_TX | $FGREP '"satoshis" : 10000002'
# Now fund a channel.
lcli1 fundchannel $ID2 100000
# Now wait for it to reach depth
lcli1 getpeers info | $FGREP "Waiting for our funding tx"
$CLI generate 10
check "lcli1 getpeers info | $FGREP 'Funding tx reached depth'"
check "lcli2 getpeers info | $FGREP 'Funding tx reached depth'"
lcli1 stop
lcli2 stop