MCPcopy Create free account
hub / github.com/ElementsProject/elements / wallet_test

Method wallet_test

test/functional/feature_pruning.py:354–367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

352 self.log.info("Success")
353
354 def wallet_test(self):
355 # check that the pruning node's wallet is still in good shape
356 self.log.info("Stop and start pruning node to trigger wallet rescan")
357 self.restart_node(2, extra_args=["-prune=550"])
358 self.log.info("Success")
359
360 # check that wallet loads successfully when restarting a pruned node after IBD.
361 # this was reported to fail in #7494.
362 self.log.info("Syncing node 5 to test wallet")
363 self.connect_nodes(0, 5)
364 nds = [self.nodes[0], self.nodes[5]]
365 self.sync_blocks(nds, wait=5, timeout=300)
366 self.restart_node(5, extra_args=["-prune=550"]) # restart to trigger rescan
367 self.log.info("Success")
368
369 def run_test(self):
370 self.log.info("Warning! This test requires 4GB of disk space")

Callers 1

run_testMethod · 0.95

Calls 4

infoMethod · 0.80
connect_nodesMethod · 0.80
restart_nodeMethod · 0.45
sync_blocksMethod · 0.45

Tested by

no test coverage detected