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) {
int64_t CAmount
Amount in satoshis (Can be negative)
static constexpr CAmount COIN
The amount of satoshis in one BTC.
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
CAmount GetFee(uint32_t num_bytes) const
Return the fee in satoshis for the given vsize in vbytes.
CAmount nSatoshisPerK
Fee rate in sat/kvB (satoshis per 1000 virtualbytes)
CFeeRate()
Fee rate of 0 satoshis per kvB.
const std::string CURRENCY_ATOM
const std::string CURRENCY_UNIT
@ SAT_VB
Use sat/vB fee rate unit.