Generate a number of random, nonexistent outpoints.
| 56 | |
| 57 | // Generate a number of random, nonexistent outpoints. |
| 58 | static inline std::vector<COutPoint> random_outpoints(size_t num_outpoints) { |
| 59 | std::vector<COutPoint> outpoints; |
| 60 | for (size_t i{0}; i < num_outpoints; ++i) { |
| 61 | outpoints.emplace_back(Txid::FromUint256(GetRandHash()), 0); |
| 62 | } |
| 63 | return outpoints; |
| 64 | } |
| 65 | |
| 66 | static inline std::vector<CPubKey> random_keys(size_t num_keys) { |
| 67 | std::vector<CPubKey> keys; |
no test coverage detected