plugins/pay: use final_cltc from bolt11 invoice.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-15 14:52:27 +10:30
committed by Christian Decker
parent 6974c58b47
commit 802b772cad
2 changed files with 6 additions and 3 deletions

View File

@@ -234,8 +234,7 @@ def test_htlc_out_timeout(node_factory, bitcoind, executor):
l1.daemon.wait_for_log('dev_disconnect: @WIRE_REVOKE_AND_ACK')
# Takes 6 blocks to timeout (cltv-final + 1), but we also give grace period of 1 block.
# FIXME: pay plugin uses default value of 9...
bitcoind.generate_block(9 + 1)
bitcoind.generate_block(5 + 1)
time.sleep(3)
assert not l1.daemon.is_in_log('hit deadline')
bitcoind.generate_block(1)