(data_size, prev_bid=None)
return suggested_bid
Suggest a valid bid for the given data transmission length

    Args:
        data_size : Size of the transmit data in bytes
        prev_bid  : Previous bid, if any

    Returns:
        Bid in millisatoshis
Suggest a valid bid for the given data transmission length
Suggest a valid bid for the given data transmission length
def suggest_bid(data_size, prev_bid=None):
    """Suggest a valid bid for the given data transmission length

    Args:
        data_size : Size of the transmit data in bytes
        prev_bid  : Previous bid, if any

    Returns:
        Bid in millisatoshis

    """
    assert (isinstance(data_size, int))

    if (prev_bid is not None):
        # Suggest a 5% higher msat/byte ratio
        suggested_bid = ceil(DEFAULT_BUMP_FACTOR * prev_bid)
    else:
        suggested_bid = max(ceil(data_size * MIN_BID_PER_BYTE), MIN_BID)
    return suggested_bid
def suggest_bid ( data_size , prev_bid = None ) : assert ( isinstance ( data_size , int ) ) if ( prev_bid is not None ) : # Suggest a 5% higher msat/byte ratio suggested_bid = ceil ( DEFAULT_BUMP_FACTOR * prev_bid ) else : suggested_bid = max ( ceil ( data_size * MIN_BID_PER_BYTE ) , MIN_BID ) return suggested_bid