MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetSelectedValue

Method GetSelectedValue

src/wallet/coinselection.cpp:954–957  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954CAmount SelectionResult::GetSelectedValue() const
955{
956 return std::accumulate(m_selected_inputs.cbegin(), m_selected_inputs.cend(), CAmount{0}, [](CAmount sum, const auto& coin) { return sum + coin->txout.nValue; });
957}
958
959CAmount SelectionResult::GetSelectedEffectiveValue() const
960{

Callers 6

spend.cppFile · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
select_coinsFunction · 0.80
TestBnBSuccessFunction · 0.80
CoinSelectionFunction · 0.80

Calls 2

cbeginMethod · 0.45
cendMethod · 0.45

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.64
select_coinsFunction · 0.64
TestBnBSuccessFunction · 0.64