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:
Rusty Russell 2023-06-19 17:20:09 +09:30
parent c1d3da889c
commit 2abcd8108e

View File

@ -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