Changeset View
Changeset View
Standalone View
Standalone View
src/feerate.h
Show All 30 Lines | public: | ||||
explicit constexpr CFeeRate(const Amount _nSatoshisPerK) | explicit constexpr CFeeRate(const Amount _nSatoshisPerK) | ||||
: nSatoshisPerK(_nSatoshisPerK) {} | : nSatoshisPerK(_nSatoshisPerK) {} | ||||
/** | /** | ||||
* Constructor for a fee rate in satoshis per kB. The size in bytes must not | * Constructor for a fee rate in satoshis per kB. The size in bytes must not | ||||
* exceed (2^63 - 1) | * exceed (2^63 - 1) | ||||
*/ | */ | ||||
CFeeRate(const Amount nFeePaid, size_t nBytes); | CFeeRate(const Amount nFeePaid, size_t nBytes); | ||||
constexpr CFeeRate(const CFeeRate &other) | |||||
: nSatoshisPerK(other.nSatoshisPerK) {} | |||||
/** | /** | ||||
* Return the fee in satoshis for the given size in bytes. | * Return the fee in satoshis for the given size in bytes. | ||||
*/ | */ | ||||
Amount GetFee(size_t nBytes) const; | Amount GetFee(size_t nBytes) const; | ||||
/** | /** | ||||
* Return the ceiling of a fee calculation in satoshis for the given size in | * Return the ceiling of a fee calculation in satoshis for the given size in | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |