mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-01 15:36:10 +02:00
test: Fix intermittent issue in wallet_import_rescan
This commit is contained in:
parent
80c8a02f1b
commit
faca3734c0
@ -182,6 +182,7 @@ class ImportRescanTest(BitcoinTestFramework):
|
|||||||
self.nodes[0].generate(1) # Generate one block for each send
|
self.nodes[0].generate(1) # Generate one block for each send
|
||||||
variant.confirmation_height = self.nodes[0].getblockcount()
|
variant.confirmation_height = self.nodes[0].getblockcount()
|
||||||
variant.timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
|
variant.timestamp = self.nodes[0].getblockheader(self.nodes[0].getbestblockhash())["time"]
|
||||||
|
self.sync_all() # Conclude sync before calling setmocktime to avoid timeouts
|
||||||
|
|
||||||
# Generate a block further in the future (past the rescan window).
|
# Generate a block further in the future (past the rescan window).
|
||||||
assert_equal(self.nodes[0].getrawmempool(), [])
|
assert_equal(self.nodes[0].getrawmempool(), [])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user