| 84 | } |
| 85 | |
| 86 | void static RandomScript(CScript &script) { |
| 87 | static const opcodetype oplist[] = {OP_FALSE, OP_1, OP_2, OP_3, OP_CHECKSIG, OP_IF, OP_VERIF, OP_RETURN, OP_CODESEPARATOR}; |
| 88 | script = CScript(); |
| 89 | int ops = (InsecureRandRange(10)); |
| 90 | for (int i=0; i<ops; i++) |
| 91 | script << oplist[InsecureRandRange(std::size(oplist))]; |
| 92 | } |
| 93 | |
| 94 | void static RandomTransaction(CMutableTransaction& tx, bool fSingle) |
| 95 | { |
no test coverage detected