diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 3c3c3ac1a8..6c49d4a5ab 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1711,7 +1711,7 @@ bool GenericTransactionSignatureChecker::CheckSchnorrSignature(Spantxdata); + if (!this->txdata) return HandleMissingData(m_mdb); if (!SignatureHashSchnorr(sighash, execdata, *txTo, nIn, hashtype, sigversion, *this->txdata, m_mdb)) { return set_error(serror, SCRIPT_ERR_SCHNORR_SIG_HASHTYPE); }