14 assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
15 int64_t nSize = int64_t(nBytes_);
26 assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
27 int64_t nSize = int64_t(nBytes_);
33 ? nSize * nSatoshisPerK / 1000 +
SATOSHI 34 : nSize * nSatoshisPerK / 1000);
36 nFee = nSize * nSatoshisPerK / 1000;
const std::string CURRENCY_UNIT
static constexpr Amount zero()
static constexpr Amount SATOSHI
Amount GetFee(size_t nBytes) const
Return the fee in satoshis for the given size in bytes.
static constexpr Amount COIN
constexpr CFeeRate()
Fee rate of 0 satoshis per kB.
std::string ToString() const
Amount GetFeeCeiling(size_t nBytes) const
Return the ceiling of a fee calculation in satoshis for the given size in bytes.