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