![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <amount.h>
Public Member Functions | |
CFeeRate () | |
CFeeRate (const CAmount &_nSatoshisPerK) | |
CFeeRate (const CAmount &nFeePaid, size_t nSize) | |
CFeeRate (const CFeeRate &other) | |
CAmount | GetFee (size_t size) const |
CAmount | GetFeePerK () const |
CFeeRate & | operator+= (const CFeeRate &a) |
std::string | ToString () const |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion) |
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) |
Type-safe wrapper class for fee rates (how much to pay based on transaction size)
|
inlineexplicit |
CFeeRate::CFeeRate | ( | const CAmount & | nFeePaid, |
size_t | nSize | ||
) |
Definition at line 12 of file amount.cpp.
CAmount CFeeRate::GetFee | ( | size_t | size | ) | const |
Definition at line 20 of file amount.cpp.
Referenced by AcceptToMemoryPoolWorker(), CreateNewBlock(), CWallet::CreateTransaction(), CTxOut::GetDustThreshold(), GetFeePerK(), CWallet::GetMinimumFee(), and CWallet::GetRequiredFee().
|
inline |
Definition at line 47 of file amount.h.
Referenced by CBlockPolicyEstimator::CBlockPolicyEstimator(), estimatefee(), estimatesmartfee(), CBlockPolicyEstimator::estimateSmartFee(), CBlockPolicyEstimator::estimateSmartPriority(), getinfo(), CTxMemPool::GetMinFee(), getnetworkinfo(), getwalletinfo(), HelpMessage(), mempoolInfoToJSON(), CTxMemPool::trackPackageRemoved(), CoinControlDialog::updateLabels(), and SendCoinsDialog::updateSmartFeeLabel().
|
inline |
std::string CFeeRate::ToString | ( | ) | const |
Definition at line 30 of file amount.cpp.
Referenced by AcceptToMemoryPoolWorker(), AppInit2(), and CTxMemPool::TrimToSize().
|
private |
Definition at line 39 of file amount.h.
Referenced by CFeeRate(), GetFee(), operator+=(), SerializationOp(), and ToString().