Bitcoin ABC 0.26.3
P2P Digital Currency
|
Fee rate in satoshis per kilobyte: Amount / kB. More...
#include <feerate.h>
Public Member Functions | |
constexpr | CFeeRate () |
Fee rate of 0 satoshis per kB. | |
constexpr | CFeeRate (const Amount _nSatoshisPerK) |
CFeeRate (const Amount nFeePaid, size_t nBytes) | |
Constructor for a fee rate in satoshis per kB. | |
Amount | GetFee (size_t nBytes) const |
Return the fee in satoshis for the given size in bytes. | |
Amount | GetFeeCeiling (size_t nBytes) const |
Return the ceiling of a fee calculation in satoshis for the given size in bytes. | |
Amount | GetFeePerK () const |
Return the fee in satoshis for a size of 1000 bytes. | |
CFeeRate & | operator+= (const CFeeRate &a) |
std::string | ToString () const |
SERIALIZE_METHODS (CFeeRate, obj) | |
Private Attributes | |
Amount | nSatoshisPerK |
Friends | |
constexpr bool | operator== (const CFeeRate a, const CFeeRate b) |
Equality. | |
constexpr bool | operator!= (const CFeeRate a, const CFeeRate b) |
bool | operator< (const CFeeRate &a, const CFeeRate &b) |
Comparison. | |
bool | operator> (const CFeeRate &a, const CFeeRate &b) |
bool | operator<= (const CFeeRate &a, const CFeeRate &b) |
bool | operator>= (const CFeeRate &a, const CFeeRate &b) |
|
inlineconstexpr |
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.
Return the fee in satoshis for the given size in bytes.
Definition at line 49 of file feerate.cpp.
Return the ceiling of a fee calculation in satoshis for the given size in bytes.
Definition at line 53 of file feerate.cpp.
|
inline |
std::string CFeeRate::ToString | ( | ) | const |
Definition at line 57 of file feerate.cpp.