Check the script has sufficient sigops budget for checksig(crypto) operation
| 440 | |
| 441 | // Check the script has sufficient sigops budget for checksig(crypto) operation |
| 442 | inline bool update_validation_weight(ScriptExecutionData& execdata, ScriptError* serror) |
| 443 | { |
| 444 | assert(execdata.m_validation_weight_left_init); |
| 445 | execdata.m_validation_weight_left -= VALIDATION_WEIGHT_PER_SIGOP_PASSED; |
| 446 | if (execdata.m_validation_weight_left < 0) { |
| 447 | return set_error(serror, SCRIPT_ERR_TAPSCRIPT_VALIDATION_WEIGHT); |
| 448 | } |
| 449 | return true; |
| 450 | } |
| 451 | |
| 452 | static bool EvalChecksigPreTapscript(const valtype& vchSig, const valtype& vchPubKey, CScript::const_iterator pbegincodehash, CScript::const_iterator pend, unsigned int flags, const BaseSignatureChecker& checker, SigVersion sigversion, ScriptError* serror, bool& fSuccess) |
| 453 | { |
no test coverage detected