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)
Definition: feerate.h:43
ADD_SERIALIZE_METHODS
Definition: feerate.h:51
int64_t CAmount
Definition: amount.h:12
CAmount nSatoshisPerK
Definition: feerate.h:22
CFeeRate(const I _nSatoshisPerK)
Definition: feerate.h:28
std::string ToString() const
Definition: feerate.cpp:40
CAmount GetFeePerK() const
Definition: feerate.h:41
CFeeRate()
Definition: feerate.h:26
friend bool operator!=(const CFeeRate &a, const CFeeRate &b)
Definition: feerate.h:47
const std::string CURRENCY_UNIT
Definition: feerate.cpp:10
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
Definition: feerate.h:44
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
Definition: feerate.h:42
CFeeRate & operator+=(const CFeeRate &a)
Definition: feerate.h:48
friend bool operator>=(const CFeeRate &a, const CFeeRate &b)
Definition: feerate.h:46
friend bool operator<=(const CFeeRate &a, const CFeeRate &b)
Definition: feerate.h:45
#define READWRITE(...)
Definition: serialize.h:184
CAmount GetFee(size_t nBytes) const
Definition: feerate.cpp:23
void SerializationOp(Stream &s, Operation ser_action)
Definition: feerate.h:54