def blocksize_limit_for_txs(txps, txsize=226):
    """
    Given a transactions per second figure, calculate the equivalent bitcoin
    blocksize.
    """
    mbs = (txps * txsize) / (1024 * 1024.0) # megabytes per second
    return mbs * 600.0