0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-05 14:06:27 -05:00

test: check importing wallets when blocks are pruned throw an error

This commit is contained in:
brunoerg 2022-09-29 14:43:43 -03:00
parent 291e363ce5
commit 4aff7a48a4

View file

@ -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")