src/omnicore/consensushash.cpp
// Generates a consensus string for hashing based on a DEx sell offer object
Generates a consensus string for hashing based on a DEx sell offer object
Generates a consensus string for hashing based on a DEx sell offer object
std::string GenerateConsensusString(const CMPOffer& offerObj, const std::string& address)
{
    return strprintf("%s|%s|%d|%d|%d|%d|%d",
            offerObj.getHash().GetHex(), address, offerObj.getProperty(), offerObj.getOfferAmountOriginal(),
            offerObj.getBTCDesiredOriginal(), offerObj.getMinFee(), offerObj.getBlockTimeLimit());
}
std :: string GenerateConsensusString ( const CMPOffer & offerObj , const std :: string & address ) { return strprintf ( " " , offerObj . getHash ( ) . GetHex ( ) , address , offerObj . getProperty ( ) , offerObj . getOfferAmountOriginal ( ) , offerObj . getBTCDesiredOriginal ( ) , offerObj . getMinFee ( ) , offerObj . getBlockTimeLimit ( ) ) ; }
Generates a consensus string for hashing based on a DEx sell offer object
Generates a consensus string for hashing based on a DEx sell offer object