def METHOD_NAME(self, nblocks, prev_hash, prev_height, prev_median_time):
    blocks = []
    for _ in range(nblocks):
        coinbase = create_coinbase(prev_height + 1)
        block_time = prev_median_time + 1
        block = create_block(int(prev_hash, 16), coinbase, block_time)
        block.solve()
        blocks.append(block)
        prev_hash = block.hash
        prev_height += 1
        prev_median_time = block_time
    return blocks