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

Method Merge

src/wallet/coinselection.cpp:996–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994}
995
996void SelectionResult::Merge(const SelectionResult& other)
997{
998 // As it can fail, combine inputs first
999 InsertInputs(other.m_selected_inputs);
1000
1001 m_target += other.m_target;
1002 m_use_effective |= other.m_use_effective;
1003 if (m_algo == SelectionAlgorithm::MANUAL) {
1004 m_algo = other.m_algo;
1005 }
1006
1007 m_weight += other.m_weight;
1008}
1009
1010const OutputSet& SelectionResult::GetInputSet() const
1011{

Callers 11

GetSigningProviderMethod · 0.45
SignTransactionMethod · 0.45
FillPSBTMethod · 0.45
SelectCoinsFunction · 0.45
FundTransactionFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
DoCheckFunction · 0.45
FUZZ_TARGETFunction · 0.45
FUZZ_TARGETFunction · 0.45

Calls

no outgoing calls

Tested by 6

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
DoCheckFunction · 0.36
FUZZ_TARGETFunction · 0.36
FUZZ_TARGETFunction · 0.36