diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-05-22 20:31:58 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-06-12 12:25:28 -0700 |
commit | e77a2839b54fa2039bba468e8c09dbbbf19b150a (patch) | |
tree | 584a72f0a2f401c3879f05067d14ec64747844b3 | |
parent | dbb0ce9fbff01ffe4dd29da465f43ecaddc2854c (diff) |
Use HandleMissingData also in CheckSchnorrSignature
-rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<T>::CheckSchnorrSignature(Span<const uns if (hashtype == SIGHASH_DEFAULT) return set_error(serror, SCRIPT_ERR_SCHNORR_SIG_HASHTYPE); } uint256 sighash; - assert(this->txdata); + 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); } |