Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
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) |
Detailed Description
Constructor & Destructor Documentation
◆ CFeeRate() [1/3]
|
inline |
◆ CFeeRate() [2/3]
|
inline |
◆ CFeeRate() [3/3]
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.
References nSatoshisPerK.
Member Function Documentation
◆ GetFee()
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.
References nSatoshisPerK.
Referenced by AcceptToMemoryPoolWorker(), BlockAssembler::addPackageTxs(), CWallet::CreateTransaction(), GetDustThreshold(), GetFeePerK(), GetInfo(), GetMinimumFee(), and GetRequiredFee().
◆ GetFeePerK()
|
inline |
Return the fee in satoshis for a size of 1000 bytes.
Definition at line 41 of file feerate.h.
References GetFee().
Referenced by estimatefee(), estimaterawfee(), estimatesmartfee(), WalletInit::GetHelpString(), CTxMemPool::GetMinFee(), getnetworkinfo(), getwalletinfo(), mempoolInfoToJSON(), WalletInit::ParameterInteraction(), CTxMemPool::trackPackageRemoved(), and SendCoinsDialog::updateSmartFeeLabel().
◆ operator+=()
Definition at line 48 of file feerate.h.
References nSatoshisPerK.
◆ SerializationOp()
|
inline |
Definition at line 54 of file feerate.h.
References nSatoshisPerK, and READWRITE.
◆ ToString()
std::string CFeeRate::ToString | ( | ) | const |
Definition at line 40 of file feerate.cpp.
References COIN, CURRENCY_UNIT, nSatoshisPerK, and strprintf.
Referenced by BlockAssembler::AddToBlock(), AppInitParameterInteraction(), WalletInit::ParameterInteraction(), and CTxMemPool::TrimToSize().
Friends And Related Function Documentation
◆ operator!=
◆ operator<
◆ operator<=
◆ operator==
◆ operator>
◆ operator>=
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
◆ nSatoshisPerK
|
private |
Definition at line 22 of file feerate.h.
Referenced by CFeeRate(), GetFee(), operator+=(), SerializationOp(), and ToString().
The documentation for this class was generated from the following files:
- src/policy/feerate.h
- src/policy/feerate.cpp