Skip to content

Commit e77a283

Browse files
committed
Use HandleMissingData also in CheckSchnorrSignature
1 parent dbb0ce9 commit e77a283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/interpreter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,7 @@ bool GenericTransactionSignatureChecker<T>::CheckSchnorrSignature(Span<const uns
17111711
if (hashtype == SIGHASH_DEFAULT) return set_error(serror, SCRIPT_ERR_SCHNORR_SIG_HASHTYPE);
17121712
}
17131713
uint256 sighash;
1714-
assert(this->txdata);
1714+
if (!this->txdata) return HandleMissingData(m_mdb);
17151715
if (!SignatureHashSchnorr(sighash, execdata, *txTo, nIn, hashtype, sigversion, *this->txdata, m_mdb)) {
17161716
return set_error(serror, SCRIPT_ERR_SCHNORR_SIG_HASHTYPE);
17171717
}

0 commit comments

Comments
 (0)