6 #ifndef BITCOIN_POLICY_FEERATE_H 7 #define BITCOIN_POLICY_FEERATE_H 30 static_assert(std::is_integral<I>::value,
"CFeeRate should be used without floats");
53 template <
typename Stream,
typename Operation>
59 #endif // BITCOIN_POLICY_FEERATE_H 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)
int64_t CAmount
Amount in satoshis (Can be negative)
CFeeRate & operator+=(const CFeeRate &a)
const std::string CURRENCY_UNIT
void SerializationOp(Stream &s, Operation ser_action)
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
CFeeRate()
Fee rate of 0 satoshis per kB.
Fee rate in satoshis per kilobyte: CAmount / kB.
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
friend bool operator!=(const CFeeRate &a, const CFeeRate &b)
std::string ToString() const
CAmount GetFeePerK() const
Return the fee in satoshis for a size of 1000 bytes.
CFeeRate(const I _nSatoshisPerK)
CAmount GetFee(size_t nBytes) const
Return the fee in satoshis for the given size in bytes.