14 const int64_t nSize{num_bytes};
25 const int64_t nSize{num_bytes};
31 if (nFee == 0 && nSize != 0) {
41 switch (fee_estimate_mode) {
Use sat/vB fee rate unit.
CAmount nSatoshisPerK
Fee rate in sat/kvB (satoshis per 1000 virtualbytes)
int64_t CAmount
Amount in satoshis (Can be negative)
const std::string CURRENCY_ATOM
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
const std::string CURRENCY_UNIT
CFeeRate()
Fee rate of 0 satoshis per kvB.
CAmount GetFee(uint32_t num_bytes) const
Return the fee in satoshis for the given vsize in vbytes.
static constexpr CAmount COIN
The amount of satoshis in one BTC.