Skip to content

Commit 4aff7a4

Browse files
committed
test: check importing wallets when blocks are pruned throw an error
1 parent 291e363 commit 4aff7a4

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
@@ -358,6 +358,8 @@ def wallet_test(self):
358358
self.restart_node(2, extra_args=["-prune=550"])
359359
self.log.info("Success")
360360

361+
assert_raises_rpc_error(-4, "Importing wallets is disabled when blocks are pruned", self.nodes[2].importwallet, "abc")
362+
361363
# check that wallet loads successfully when restarting a pruned node after IBD.
362364
# this was reported to fail in #7494.
363365
self.log.info("Syncing node 5 to test wallet")

0 commit comments

Comments
 (0)