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)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
static constexpr Amount zero() noexcept
static const Currency & get()