Skip to content

Commit e4850ce

Browse files
author
MarcoFalke
committed
Merge #14930: test: pruning: Check that verifychain can be called when pruned
fa3e874 test: pruning: Check that verifychain can be called when pruned (MarcoFalke) Pull request description: Tree-SHA512: b921e550fdad27b791665883ed9fc50210575b0f968840a45284ad0e060ddd443ea7b9b12c17916f68ad28877c58ac51a6acc76ae4ea71bf7bfb2f744b286884
2 parents df73c23 + fa3e874 commit e4850ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/feature_pruning.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def reorg_test(self):
191191
def reorg_back(self):
192192
# Verify that a block on the old main chain fork has been pruned away
193193
assert_raises_rpc_error(-1, "Block not available (pruned data)", self.nodes[2].getblock, self.forkhash)
194+
with self.nodes[2].assert_debug_log(expected_msgs=['block verification stopping at height', '(pruning, no data)']):
195+
self.nodes[2].verifychain(checklevel=4, nblocks=0)
194196
self.log.info("Will need to redownload block %d" % self.forkheight)
195197

196198
# Verify that we have enough history to reorg back to the fork point

0 commit comments

Comments
 (0)