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

Function valueFor

src/asset.cpp:150–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150CAmount valueFor(const CAmountMap& mapValue, const CAsset& asset) {
151 CAmountMap::const_iterator it = mapValue.find(asset);
152 if (it != mapValue.end()) {
153 return it->second;
154 } else {
155 return CAmount(0);
156 }
157}
158
159std::ostream& operator<<(std::ostream& out, const CAmountMap& map)
160{

Callers 5

setBalanceMethod · 0.85
useAvailableBalanceMethod · 0.85
toHTMLMethod · 0.85
decomposeTransactionMethod · 0.85
TestGUIFunction · 0.85

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

TestGUIFunction · 0.68