6 #ifndef FABCOIN_POLICY_FEERATE_H 7 #define FABCOIN_POLICY_FEERATE_H 27 explicit CFeeRate(
const CAmount& _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) { }
50 template <
typename Stream,
typename Operation>
56 #endif // FABCOIN_POLICY_FEERATE_H CAmount GetFeePerK() const
Return the fee in liu for a size of 1000 bytes.
friend bool operator>=(const CFeeRate &a, const CFeeRate &b)
friend bool operator<=(const CFeeRate &a, const CFeeRate &b)
friend bool operator>(const CFeeRate &a, const CFeeRate &b)
CFeeRate(const CAmount &_nSatoshisPerK)
int64_t CAmount
Amount in lius (Can be negative)
CFeeRate & operator+=(const CFeeRate &a)
const std::string CURRENCY_UNIT
void SerializationOp(Stream &s, Operation ser_action)
CFeeRate(const CFeeRate &other)
std::string ToString() const
CAmount GetFee(size_t nBytes) const
Return the fee in liu for the given size in bytes.
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
CFeeRate()
Fee rate of 0 liu per kB.
Fee rate in liu per kilobyte: CAmount / kB.
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
friend bool operator!=(const CFeeRate &a, const CFeeRate &b)