(bid, prev_bid=None)
return True
Validate a given bid

    Args:
        bid      : New bid in msats
        prev_bid : Previous bid in msats, used if bumping

    Returns:
        Bool indicating whether the bid is valid.
Validate a given bid
Validate a given bid
def validate_bid(bid, prev_bid=None):
    """Validate a given bid

    Args:
        bid      : New bid in msats
        prev_bid : Previous bid in msats, used if bumping

    Returns:
        Bool indicating whether the bid is valid.

    """
    if (bid <= 0):
        print("Please provide a positive bid in millisatoshis")
        return False

    if (prev_bid is not None and bid <= prev_bid):
        print("Please provide a bid higher than the previous bid")
        return False

    if (bid > MAX_BID):
        print("Bid too large. Are you sure you want to bid {:.2f} "
              "sats (satoshis)?".format(bid / 1e3))
        return False

    return True
def validate_bid ( bid , prev_bid = None ) : if ( bid <= 0 ) : print ( "Please provide a positive bid in millisatoshis" ) return False if ( prev_bid is not None and bid <= prev_bid ) : print ( "Please provide a bid higher than the previous bid" ) return False if ( bid > MAX_BID ) : print ( "Bid too large. Are you sure you want to bid {:.2f} " "sats (satoshis)?" . format ( bid / 1e3 ) ) return False return True