| 14 | #include <utility> |
| 15 | |
| 16 | COutPoint AddTestCoin(FastRandomContext& rng, CCoinsViewCache& coins_view) |
| 17 | { |
| 18 | Coin new_coin; |
| 19 | COutPoint outpoint{Txid::FromUint256(rng.rand256()), /*nIn=*/0}; |
| 20 | new_coin.nHeight = 1; |
| 21 | new_coin.out.nValue = RandMoney(rng); |
| 22 | new_coin.out.scriptPubKey.assign(uint32_t{56}, 1); |
| 23 | coins_view.AddCoin(outpoint, std::move(new_coin), /*possible_overwrite=*/false); |
| 24 | |
| 25 | return outpoint; |
| 26 | }; |
no test coverage detected