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

Method GetSelectedValue

src/wallet/coinselection.cpp:583–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583CAmountMap SelectionResult::GetSelectedValue() const
584{
585 return std::accumulate(m_selected_inputs.cbegin(), m_selected_inputs.cend(), CAmountMap{}, [](CAmountMap sum, const auto& coin) { return sum + CAmountMap{{coin.asset, coin.value}}; });
586}
587
588void SelectionResult::Clear()
589{

Callers 4

KnapsackSolverFunction · 0.80
spend.cppFile · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
CoinSelectionFunction · 0.80

Calls 2

cbeginMethod · 0.80
cendMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64