![]() |
BSHA3
0.17.99
P2P Blockchain, based on Bitcoin
|
Fee rate in satoshis per kilobyte: CAmount / kB. More...
#include <feerate.h>
Public Member Functions | |
CFeeRate () | |
Fee rate of 0 satoshis per kB. More... | |
template<typename I > | |
CFeeRate (const I _nSatoshisPerK) | |
CFeeRate (const CAmount &nFeePaid, size_t nBytes) | |
Constructor for a fee rate in satoshis per kB. More... | |
CAmount | GetFee (size_t nBytes) const |
Return the fee in satoshis for the given size in bytes. More... | |
CAmount | GetFeePerK () const |
Return the fee in satoshis for a size of 1000 bytes. More... | |
CFeeRate & | operator+= (const CFeeRate &a) |
std::string | ToString () const |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
Private Attributes | |
CAmount | nSatoshisPerK |
Friends | |
bool | operator< (const CFeeRate &a, const CFeeRate &b) |
bool | operator> (const CFeeRate &a, const CFeeRate &b) |
bool | operator== (const CFeeRate &a, const CFeeRate &b) |
bool | operator<= (const CFeeRate &a, const CFeeRate &b) |
bool | operator>= (const CFeeRate &a, const CFeeRate &b) |
bool | operator!= (const CFeeRate &a, const CFeeRate &b) |
|
inline |
|
inline |
CFeeRate::CFeeRate | ( | const CAmount & | 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 12 of file feerate.cpp.
CAmount CFeeRate::GetFee | ( | size_t | nBytes | ) | const |
Return the fee in satoshis for the given size in bytes.
Definition at line 23 of file feerate.cpp.
|
inline |
|
inline |
std::string CFeeRate::ToString | ( | ) | const |
Definition at line 40 of file feerate.cpp.