12 assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
13 int64_t nSize = int64_t(nBytes_);
24 assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
25 int64_t nSize = int64_t(nBytes_);
31 ? nSize * nSatoshisPerK / 1000 +
SATOSHI
32 : nSize * nSatoshisPerK / 1000);
34 nFee = nSize * nSatoshisPerK / 1000;
static constexpr Amount SATOSHI
constexpr CFeeRate()
Fee rate of 0 satoshis per kB.
std::string ToString() const
Amount GetFee(size_t nBytes) const
Return the fee in satoshis for the given size in bytes.
Amount GetFeeCeiling(size_t nBytes) const
Return the ceiling of a fee calculation in satoshis for the given size in bytes.
static Amount GetFee(size_t nBytes_, Amount nSatoshisPerK)
static constexpr Amount zero() noexcept
static const Currency & get()