Skip to content

Commit fa3e874

Browse files
author
MarcoFalke
committed
test: pruning: Check that verifychain can be called when pruned
1 parent 7701b62 commit fa3e874

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)