mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
test_lightningd.py: fix race in test_fee_limits.
Sometimes the super-low-fee commitment tx succeeds, and we see that 'sendrawtx exit 0' instead of the one we're expecting. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -3154,7 +3154,11 @@ class LightningDTests(BaseLightningDTests):
|
|||||||
# L1 asks for stupid low fees
|
# L1 asks for stupid low fees
|
||||||
l1.rpc.dev_setfees(15)
|
l1.rpc.dev_setfees(15)
|
||||||
|
|
||||||
l1.daemon.wait_for_log('STATUS_FAIL_PEER_BAD')
|
l1.daemon.wait_for_log('STATUS_FAIL_PEER_BAD:.*update_fee 15 outside range 4250-75000')
|
||||||
|
# Make sure the resolution of this one doesn't interfere with the next!
|
||||||
|
# Note: may succeed, may fail with insufficient fee, depending on how
|
||||||
|
# bitcoind feels!
|
||||||
|
l1.daemon.wait_for_log('sendrawtx exit')
|
||||||
|
|
||||||
# Restore to normal.
|
# Restore to normal.
|
||||||
l1.rpc.dev_setfees(15000)
|
l1.rpc.dev_setfees(15000)
|
||||||
|
|||||||
Reference in New Issue
Block a user