* Verifies script execution of the zeroth scriptPubKey of tx output and * zeroth scriptSig and witness of tx input. */
| 68 | * zeroth scriptSig and witness of tx input. |
| 69 | */ |
| 70 | static ScriptError VerifyWithFlag(const CTransaction& output, const CMutableTransaction& input, int flags) |
| 71 | { |
| 72 | ScriptError error; |
| 73 | CTransaction inputi(input); |
| 74 | bool ret = VerifyScript(inputi.vin[0].scriptSig, output.vout[0].scriptPubKey, &inputi.vin[0].scriptWitness, flags, TransactionSignatureChecker(&inputi, 0, output.vout[0].nValue), &error); |
| 75 | BOOST_CHECK((ret == true) == (error == SCRIPT_ERR_OK)); |
| 76 | |
| 77 | return error; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Builds a creationTx from scriptPubKey and a spendingTx from scriptSig |
no test coverage detected