MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetMinimumFee

Function GetMinimumFee

src/wallet/fees.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22CAmount GetMinimumFee(const CWallet& wallet, unsigned int nTxBytes, const CCoinControl& coin_control, const CTxMemPool& pool, const CBlockPolicyEstimator& estimator, FeeCalculation* feeCalc)
23{
24 CAmount fee_needed = GetMinimumFeeRate(wallet, coin_control, pool, estimator, feeCalc).GetFee(nTxBytes);
25 // Always obey the maximum
26 if (fee_needed > maxTxFee) {
27 fee_needed = maxTxFee;
28 if (feeCalc) feeCalc->reason = FeeReason::MAXTXFEE;
29 }
30 return fee_needed;
31}
32
33CFeeRate GetRequiredFeeRate(const CWallet& wallet)
34{

Callers 3

CreateTransactionFunction · 0.85
CreateTransactionMethod · 0.85
getMinimumFeeMethod · 0.85

Calls 2

GetMinimumFeeRateFunction · 0.85
GetFeeMethod · 0.80

Tested by

no test coverage detected