Skip to content

Commit 56af7d6

Browse files
MarcoFalkePastaPastaPasta
authored andcommitted
Merge bitcoin#22313: test: Add missing sync_all to feature_coinstatsindex
fafd916 test: Add missing sync_all to feature_coinstatsindex (MarcoFalke) Pull request description: Sync the blocks before invalidating them to ensure all nodes are on the right tip. Otherwise nodes[0] might stay on the "stale" block and the test fails (intermittently) ACKs for top commit: jamesob: crACK bitcoin@fafd916 Tree-SHA512: ca567b97b839b56c91d52831eaac18d8c843d376be90c9fd8b49d2eb4a46b801a1d2402996d5dfe2bef3e2c9bd75d19ed443e3f42cc4679c5f20043ba556efc8
1 parent b048368 commit 56af7d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/functional/feature_coinstatsindex.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ def _test_reorg_index(self):
286286
# Add another block, so we don't depend on reconsiderblock remembering which
287287
# blocks were touched by invalidateblock
288288
index_node.generate(1)
289+
self.sync_all()
289290

290291
# Ensure that removing and re-adding blocks yields consistent results
291292
block = index_node.getblockhash(99)

0 commit comments

Comments
 (0)