Copied from src/wallet/test/coinselector_tests.cpp
| 94 | |
| 95 | // Copied from src/wallet/test/coinselector_tests.cpp |
| 96 | static void add_coin(const CAmount& nValue, int nInput, std::vector<OutputGroup>& set) |
| 97 | { |
| 98 | CMutableTransaction tx; |
| 99 | tx.vout.resize(nInput + 1); |
| 100 | tx.vout[nInput].nValue = nValue; |
| 101 | CWalletTx wtx(MakeTransactionRef(tx), TxStateInactive{}); |
| 102 | CInputCoin coin(testWallet, &wtx, nInput); |
| 103 | set.emplace_back(); |
| 104 | set.back().Insert(coin, 0, true, 0, 0, false); |
| 105 | } |
| 106 | // Copied from src/wallet/test/coinselector_tests.cpp |
| 107 | static CAmount make_hard_case(int utxos, std::vector<OutputGroup>& utxo_pool) |
| 108 | { |