| 138 | } |
| 139 | |
| 140 | static CAmount make_hard_case(int utxos, std::vector<CInputCoin>& utxo_pool) |
| 141 | { |
| 142 | utxo_pool.clear(); |
| 143 | CAmount target = 0; |
| 144 | for (int i = 0; i < utxos; ++i) { |
| 145 | target += (CAmount)1 << (utxos+i); |
| 146 | add_coin((CAmount)1 << (utxos+i), 2*i, utxo_pool); |
| 147 | add_coin(((CAmount)1 << (utxos+i)) + ((CAmount)1 << (utxos-1-i)), 2*i + 1, utxo_pool); |
| 148 | } |
| 149 | return target; |
| 150 | } |
| 151 | |
| 152 | inline std::vector<OutputGroup>& GroupCoins(const std::vector<CInputCoin>& coins) |
| 153 | { |
no test coverage detected