MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetFeeMap

Function GetFeeMap

src/confidential_validation.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46CAmountMap GetFeeMap(const CTransaction& tx) {
47 CAmountMap fee;
48 for (const CTxOut& txout : tx.vout) {
49 if (txout.IsFee()) {
50 fee[txout.nAsset.GetAsset()] += txout.nValue.GetAmount();
51 }
52 }
53 return fee;
54}
55
56bool CRangeCheck::operator()() {
57 assert(val->IsCommitment());

Callers 8

CheckFeeRateFunction · 0.85
CachedTxGetAmountsFunction · 0.85
transactions.cppFile · 0.85
toHTMLMethod · 0.85
decomposeTransactionMethod · 0.85
decodepsbtFunction · 0.85
CheckTxInputsMethod · 0.85

Calls 3

IsFeeMethod · 0.80
GetAssetMethod · 0.80
GetAmountMethod · 0.80

Tested by

no test coverage detected