| 31 | |
| 32 | namespace wallet { |
| 33 | static void addCoin(const CAmount& nValue, std::vector<std::unique_ptr<CWalletTx>>& wtxs) |
| 34 | { |
| 35 | static int nextLockTime = 0; |
| 36 | CMutableTransaction tx; |
| 37 | tx.nLockTime = nextLockTime++; // so all transactions get different hashes |
| 38 | tx.vout.resize(1); |
| 39 | tx.vout[0].nValue = nValue; |
| 40 | wtxs.push_back(std::make_unique<CWalletTx>(MakeTransactionRef(std::move(tx)), TxStateInactive{})); |
| 41 | } |
| 42 | |
| 43 | // This benchmark is based on a large diverse UTXO pool. The UTXOs are |
| 44 | // pseudorandomly generated and assigned one of the four relevant output types |
no test coverage detected