mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
pytest: fix race in test_penalty_rbf_normal
We re-enable sendrawtransaction then mine a block to kick off RBF, but there's a race where it can get a tx in that block, and then we timeout waiting for both txs to get into the next block. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c1d3da889c
commit
2abcd8108e
@ -1652,7 +1652,9 @@ def test_penalty_rbf_normal(node_factory, bitcoind, executor, chainparams):
|
||||
# high-fee censored transactions, and fresh, non-censoring
|
||||
# hashpower arises, evicting the censor.
|
||||
l2.daemon.rpcproxy.mock_rpc('sendrawtransaction', None)
|
||||
bitcoind.generate_block(1)
|
||||
|
||||
# Make sure we don't mine any though!
|
||||
bitcoind.generate_block(1, needfeerate=10000000)
|
||||
|
||||
# This triggers the final RBF attempt
|
||||
start = l2.daemon.logsearch_start
|
||||
|
Loading…
Reference in New Issue
Block a user