Fee rate in satoshis per kilobyte: Amount / kB.
More...
#include <feerate.h>
Fee rate in satoshis per kilobyte: Amount / kB.
Definition at line 21 of file feerate.h.
◆ CFeeRate() [1/3]
constexpr CFeeRate::CFeeRate |
( |
| ) |
|
|
inlineconstexpr |
Fee rate of 0 satoshis per kB.
Definition at line 30 of file feerate.h.
◆ CFeeRate() [2/3]
constexpr CFeeRate::CFeeRate |
( |
const Amount |
_nSatoshisPerK | ) |
|
|
inlineexplicitconstexpr |
◆ CFeeRate() [3/3]
CFeeRate::CFeeRate |
( |
const Amount |
nFeePaid, |
|
|
size_t |
nBytes |
|
) |
| |
Constructor for a fee rate in satoshis per kB.
The size in bytes must not exceed (2^63 - 1)
Definition at line 11 of file feerate.cpp.
◆ GetFee()
Amount CFeeRate::GetFee |
( |
size_t |
nBytes | ) |
const |
Return the fee in satoshis for the given size in bytes.
Definition at line 49 of file feerate.cpp.
◆ GetFeeCeiling()
Amount CFeeRate::GetFeeCeiling |
( |
size_t |
nBytes | ) |
const |
Return the ceiling of a fee calculation in satoshis for the given size in bytes.
Definition at line 53 of file feerate.cpp.
◆ GetFeePerK()
Amount CFeeRate::GetFeePerK |
( |
| ) |
const |
|
inline |
Return the fee in satoshis for a size of 1000 bytes.
Definition at line 54 of file feerate.h.
◆ operator+=()
◆ SERIALIZE_METHODS()
CFeeRate::SERIALIZE_METHODS |
( |
CFeeRate |
, |
|
|
obj |
|
|
) |
| |
|
inline |
◆ ToString()
std::string CFeeRate::ToString |
( |
| ) |
const |
◆ operator!=
◆ operator<
◆ operator<=
◆ operator==
◆ operator>
◆ operator>=
◆ nSatoshisPerK
Amount CFeeRate::nSatoshisPerK |
|
private |
The documentation for this class was generated from the following files: