Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
More...
#include <feerate.h>
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
Definition at line 34 of file feerate.h.
◆ CFeeRate() [1/3]
Fee rate of 0 satoshis per 0 vB.
◆ CFeeRate() [2/3]
template<std::integral I>
CFeeRate::CFeeRate |
( |
const I |
m_feerate_kvb | ) |
|
|
inlineexplicit |
◆ CFeeRate() [3/3]
CFeeRate::CFeeRate |
( |
const CAmount & |
nFeePaid, |
|
|
int32_t |
virtual_bytes |
|
) |
| |
Construct a fee rate from a fee in satoshis and a vsize in vB.
Passing any virtual_bytes less than or equal to 0 will result in 0 fee rate per 0 size.
Definition at line 11 of file feerate.cpp.
◆ GetFee()
CAmount CFeeRate::GetFee |
( |
int32_t |
virtual_bytes | ) |
const |
Return the fee in satoshis for the given vsize in vbytes.
If the calculated fee would have fractional satoshis, then the returned fee will always be rounded up to the nearest satoshi.
Definition at line 20 of file feerate.cpp.
◆ GetFeePerK()
CAmount CFeeRate::GetFeePerK |
( |
| ) |
const |
|
inline |
Return the fee in satoshis for a vsize of 1000 vbytes.
Definition at line 63 of file feerate.h.
◆ operator+=()
◆ SERIALIZE_METHODS()
CFeeRate::SERIALIZE_METHODS |
( |
CFeeRate |
, |
|
|
obj |
|
|
) |
| |
|
inline |
◆ ToString()
◆ operator* [1/2]
◆ operator* [2/2]
◆ operator<=>
◆ operator==
◆ m_feerate
Fee rate in sats/vB (satoshis per N virtualbytes)
Definition at line 38 of file feerate.h.
The documentation for this class was generated from the following files: