aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_pruning.py
diff options
context:
space:
mode:
authorbrunoerg <brunoely.gc@gmail.com>2022-09-29 14:43:43 -0300
committerbrunoerg <brunoely.gc@gmail.com>2022-09-29 14:43:43 -0300
commit4aff7a48a4e0f1075306f181a276b8a74c857022 (patch)
tree9ca509739752e7e60c523dceb98a3294a95e15e9 /test/functional/feature_pruning.py
parent291e363ce500e492475c4ccd189ea1d031c43613 (diff)
downloadbitcoin-4aff7a48a4e0f1075306f181a276b8a74c857022.tar.xz
test: check importing wallets when blocks are pruned throw an error
Diffstat (limited to 'test/functional/feature_pruning.py')
-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 7dbeccbc09..4126ffcd51 100755
--- a/test/functional/feature_pruning.py
+++ b/test/functional/feature_pruning.py
@@ -358,6 +358,8 @@ class PruneTest(BitcoinTestFramework):
self.restart_node(2, extra_args=["-prune=550"])
self.log.info("Success")
+ assert_raises_rpc_error(-4, "Importing wallets is disabled when blocks are pruned", self.nodes[2].importwallet, "abc")
+
# check that wallet loads successfully when restarting a pruned node after IBD.
# this was reported to fail in #7494.
self.log.info("Syncing node 5 to test wallet")