def create_chain_with_staleblocks(self):
    self.log.info('Mine 24 (stale) blocks on Node 1, followed by 25 (main chain) block reorg from Node 0, for 12 rounds')
    for _ in range(12):
        self.disconnect_nodes(0, 1)
        self.disconnect_nodes(0, 2)
        mine_large_blocks(self.nodes[1], 24)
        mine_large_blocks(self.nodes[0], 25)
        self.connect_nodes(0, 1)
        self.connect_nodes(0, 2)
        self.sync_blocks(self.nodes[0:3])
    self.log.info(f'Usage can be over target because of high stale rate: {calc_usage(self.prunedir)}')
def create_chain_with_staleblocks(self):
    self.log.info('Mine 24 (stale) blocks on Node 1, followed by 25 (main chain) block reorg from Node 0, for 12 rounds')
    for _ in range(12):
        self.disconnect_nodes(0, 1)
        self.disconnect_nodes(0, 2)
        mine_large_blocks(self.nodes[1], 24)
        mine_large_blocks(self.nodes[0], 25)
        self.connect_nodes(0, 1)
        self.connect_nodes(0, 2)
        self.sync_blocks(self.nodes[0:3])
    self.log.info(f'Usage can be over target because of high stale rate: {calc_usage(self.prunedir)}')