def test_height_min(self):
    assert os.path.isfile(os.path.join(self.prunedir, 'blk00000.dat')), 'blk00000.dat is missing, pruning too early'
    self.log.info('Success')
    self.log.info(f"Though we're already using more than 550MiB, current usage: {calc_usage(self.prunedir)}")
    self.log.info('Mining 25 more blocks should cause the first block file to be pruned')
    mine_large_blocks(self.nodes[0], 25)
    self.wait_until((lambda : (not os.path.isfile(os.path.join(self.prunedir, 'blk00000.dat')))), timeout=30)
    self.log.info('Success')
    usage = calc_usage(self.prunedir)
    self.log.info(f'Usage should be below target: {usage}')
    assert_greater_than(550, usage)
def test_height_min(self):
    assert os.path.isfile(os.path.join(self.prunedir, 'blk00000.dat')), 'blk00000.dat is missing, pruning too early'
    self.log.info('Success')
    self.log.info(f"Though we're already using more than 550MiB, current usage: {calc_usage(self.prunedir)}")
    self.log.info('Mining 25 more blocks should cause the first block file to be pruned')
    mine_large_blocks(self.nodes[0], 25)
    self.wait_until((lambda : (not os.path.isfile(os.path.join(self.prunedir, 'blk00000.dat')))), timeout=30)
    self.log.info('Success')
    usage = calc_usage(self.prunedir)
    self.log.info(f'Usage should be below target: {usage}')
    assert_greater_than(550, usage)