7 #ifndef RAVEN_POLICY_FEERATE_H 8 #define RAVEN_POLICY_FEERATE_H 29 CFeeRate(
const I _nSatoshisPerK): nSatoshisPerK(_nSatoshisPerK) {
31 static_assert(std::is_integral<I>::value,
"CFeeRate should be used without floats");
54 template <
typename Stream,
typename Operation>
60 #endif // RAVEN_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 corbies (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.