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

Function EqualResult

src/wallet/test/coinselector_tests.cpp:134–138  ·  view source on GitHub ↗

Check if this selection is equal to another one. Equal means same inputs (i.e same value and prevout) */

Source from the content-addressed store, hash-verified

132
133/** Check if this selection is equal to another one. Equal means same inputs (i.e same value and prevout) */
134static bool EqualResult(const SelectionResult& a, const SelectionResult& b)
135{
136 std::pair<CoinSet::iterator, CoinSet::iterator> ret = std::mismatch(a.GetInputSet().begin(), a.GetInputSet().end(), b.GetInputSet().begin());
137 return ret.first == a.GetInputSet().end() && ret.second == b.GetInputSet().end();
138}
139
140static CAmount make_hard_case(int utxos, std::vector<CInputCoin>& utxo_pool)
141{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected