aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-12-27 21:56:11 +0100
committerMarcoFalke <falke.marco@gmail.com>2018-12-27 21:56:12 +0100
commite4850ce1103e24f3f5a10fe73abd86fab697c887 (patch)
treedd6697ba2c60c0c95826bb2da14cec2c8eaf9d0d /test
parentdf73c23f5fac031cc9b2ec06a74275db5ea322e3 (diff)
parentfa3e874d6938b62f500825de6c3f4d3f3ffd8f31 (diff)
downloadbitcoin-e4850ce1103e24f3f5a10fe73abd86fab697c887.tar.xz
Merge #14930: test: pruning: Check that verifychain can be called when pruned
fa3e874d69 test: pruning: Check that verifychain can be called when pruned (MarcoFalke) Pull request description: Tree-SHA512: b921e550fdad27b791665883ed9fc50210575b0f968840a45284ad0e060ddd443ea7b9b12c17916f68ad28877c58ac51a6acc76ae4ea71bf7bfb2f744b286884
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/feature_pruning.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py
index c162f46d63..11c6712881 100755
--- a/test/functional/feature_pruning.py
+++ b/test/functional/feature_pruning.py
@@ -191,6 +191,8 @@ class PruneTest(BitcoinTestFramework):
def reorg_back(self):
# Verify that a block on the old main chain fork has been pruned away
assert_raises_rpc_error(-1, "Block not available (pruned data)", self.nodes[2].getblock, self.forkhash)
+ with self.nodes[2].assert_debug_log(expected_msgs=['block verification stopping at height', '(pruning, no data)']):
+ self.nodes[2].verifychain(checklevel=4, nblocks=0)
self.log.info("Will need to redownload block %d" % self.forkheight)
# Verify that we have enough history to reorg back to the fork point