def METHOD_NAME(self, peer, numblocks, version):
    """Send numblocks blocks to peer with version set"""
    tip = self.nodes[0].getbestblockhash()
    height = self.nodes[0].getblockcount()
    block_time = self.nodes[0].getblockheader(tip)["time"] + 1
    tip = int(tip, 16)
    for _ in range(numblocks):
        block = create_block(tip, create_coinbase(height + 1), block_time, version=version)
        block.solve()
        peer.send_message(msg_block(block))
        block_time += 1
        height += 1
        tip = block.sha256
    peer.sync_with_ping()