6#ifndef BITCOIN_POLICY_FEERATE_H
7#define BITCOIN_POLICY_FEERATE_H
41 template<std::
integral I>
int64_t CAmount
Amount in satoshis (Can be negative)
Fee rate in satoshis per kilovirtualbyte: CAmount / kvB.
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
friend bool operator>=(const CFeeRate &a, const CFeeRate &b)
CAmount GetFee(uint32_t num_bytes) const
Return the fee in satoshis for the given vsize in vbytes.
friend CFeeRate operator*(int a, const CFeeRate &f)
CAmount nSatoshisPerK
Fee rate in sat/kvB (satoshis per 1000 virtualbytes)
SERIALIZE_METHODS(CFeeRate, obj)
friend CFeeRate operator*(const CFeeRate &f, int a)
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
friend bool operator>(const CFeeRate &a, const CFeeRate &b)
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
CAmount GetFeePerK() const
Return the fee in satoshis for a vsize of 1000 vbytes.
friend bool operator!=(const CFeeRate &a, const CFeeRate &b)
CFeeRate(const I _nSatoshisPerK)
CFeeRate()
Fee rate of 0 satoshis per kvB.
friend bool operator<=(const CFeeRate &a, const CFeeRate &b)
CFeeRate & operator+=(const CFeeRate &a)
const std::string CURRENCY_ATOM
const std::string CURRENCY_UNIT
@ CONSERVATIVE
Force estimateSmartFee to use conservative estimates.
@ UNSET
Use default settings based on other criteria.
@ BTC_KVB
Use BTC/kvB fee rate unit.
@ ECONOMICAL
Force estimateSmartFee to use non-conservative estimates.
@ SAT_VB
Use sat/vB fee rate unit.