| 40 | static int nextLockTime = 0; |
| 41 | |
| 42 | static void add_coin(const CAmount& nValue, int nInput, std::vector<CInputCoin>& set) |
| 43 | { |
| 44 | CMutableTransaction tx; |
| 45 | tx.vout.resize(nInput + 1); |
| 46 | tx.vout[nInput].nValue = nValue; |
| 47 | tx.nLockTime = nextLockTime++; // so all transactions get different hashes |
| 48 | CWalletTx wtx(MakeTransactionRef(tx), TxStateInactive{}); |
| 49 | set.emplace_back(testWallet, &wtx, nInput); |
| 50 | } |
| 51 | |
| 52 | static void add_coin(const CAmount& nValue, int nInput, SelectionResult& result) |
| 53 | { |
no test coverage detected