test: fix intermittent issue in feature_bip68_sequence

To avoid `bad-txns-premature-spend-of-coinbase` error,
when getting a utxo (using `get_utxo`) to create a new
transaction `get_utxo` shouldn't return by default
immature coinbase.
This commit is contained in:
brunoerg
2023-02-28 09:58:06 -03:00
parent 7be7e62fdf
commit 60ced9007d
3 changed files with 5 additions and 2 deletions

View File

@@ -191,6 +191,7 @@ class MempoolPersistTest(BitcoinTestFramework):
def test_persist_unbroadcast(self):
node0 = self.nodes[0]
self.start_node(0)
self.start_node(2)
# clear out mempool
self.generate(node0, 1, sync_fun=self.no_op)