def METHOD_NAME(tx):
    vtx = []
    while True:
        vtx.append(tx)
        if block_size(vtx) > MAX_BLOCK_SIZE:
            # Keep under the size limit
            vtx.pop()
            break
    return vtx