Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_pruning.py
Show First 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | def manual_test(self, node_number, use_timestamp): | ||||
# last 288 blocks should now be in blk00004.dat) | # last 288 blocks should now be in blk00004.dat) | ||||
node.generate(288) | node.generate(288) | ||||
prune(1000) | prune(1000) | ||||
assert not has_block( | assert not has_block( | ||||
2), "blk00002.dat is still there, should be pruned by now" | 2), "blk00002.dat is still there, should be pruned by now" | ||||
assert not has_block( | assert not has_block( | ||||
3), "blk00003.dat is still there, should be pruned by now" | 3), "blk00003.dat is still there, should be pruned by now" | ||||
# stop node, start back up with auto-prune at 550MB, make sure still | # stop node, start back up with auto-prune at 550 MiB, make sure still | ||||
# runs | # runs | ||||
self.stop_node(node_number) | self.stop_node(node_number) | ||||
self.start_node(node_number, extra_args=["-prune=550"]) | self.start_node(node_number, extra_args=["-prune=550"]) | ||||
self.log.info("Success") | self.log.info("Success") | ||||
def wallet_test(self): | def wallet_test(self): | ||||
# check that the pruning node's wallet is still in good shape | # check that the pruning node's wallet is still in good shape | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |