Check if this selection is equal to another one. Equal means same inputs (i.e same value and prevout) */
| 132 | |
| 133 | /** Check if this selection is equal to another one. Equal means same inputs (i.e same value and prevout) */ |
| 134 | static 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 | |
| 140 | static CAmount make_hard_case(int utxos, std::vector<CInputCoin>& utxo_pool) |
| 141 | { |
no test coverage detected