diff options
| author | MarcoFalke <[email protected]> | 2018-12-11 19:09:54 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-12-11 19:09:06 -0500 |
| commit | fa3e874d6938b62f500825de6c3f4d3f3ffd8f31 (patch) | |
| tree | c250c2441c1d2c73de54edef5bb233b847d8247a /test/functional/feature_pruning.py | |
| parent | Merge #14857: wallet_keypool_topup.py: Test for all keypool address types (diff) | |
| download | discoin-fa3e874d6938b62f500825de6c3f4d3f3ffd8f31.tar.xz discoin-fa3e874d6938b62f500825de6c3f4d3f3ffd8f31.zip | |
test: pruning: Check that verifychain can be called when pruned
Diffstat (limited to 'test/functional/feature_pruning.py')
| -rwxr-xr-x | test/functional/feature_pruning.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/feature_pruning.py b/test/functional/feature_pruning.py index c162f46d6..11c671288 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 |