mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-21 14:34:49 +01:00
test: Add missing syncwithvalidationinterfacequeue
This commit is contained in:
parent
faa211fc6e
commit
fadddd13ee
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,7 @@ class CompactFiltersTest(BitcoinTestFramework):
|
|||
self.disconnect_nodes(0, 1)
|
||||
|
||||
stale_block_hash = self.nodes[0].generate(1)[0]
|
||||
self.nodes[0].syncwithvalidationinterfacequeue()
|
||||
assert_equal(self.nodes[0].getblockcount(), 1000)
|
||||
|
||||
self.nodes[1].generate(1001)
|
||||
|
@ -90,6 +91,7 @@ class CompactFiltersTest(BitcoinTestFramework):
|
|||
self.log.info("Reorg node 0 to a new chain.")
|
||||
self.connect_nodes(0, 1)
|
||||
self.sync_blocks(timeout=600)
|
||||
self.nodes[0].syncwithvalidationinterfacequeue()
|
||||
|
||||
main_block_hash = self.nodes[0].getblockhash(1000)
|
||||
assert main_block_hash != stale_block_hash, "node 0 chain did not reorganize"
|
||||
|
|
Loading…
Add table
Reference in a new issue