diff --git a/src/evo/assetlocktx.cpp b/src/evo/assetlocktx.cpp index 27e53e0b24..bd3a7e7581 100644 --- a/src/evo/assetlocktx.cpp +++ b/src/evo/assetlocktx.cpp @@ -138,7 +138,10 @@ bool CAssetUnlockPayload::VerifySig(const llmq::CQuorumManager& qman, const uint } const auto quorum = qman.GetQuorum(llmqType, quorumHash); - assert(quorum); + // quorum must be valid at this point. Let's check and throw error just in case + if (!quorum) { + return state.Invalid(TxValidationResult::TX_CONSENSUS, "internal-error"); + } const uint256 requestId = ::SerializeHash(std::make_pair(ASSETUNLOCK_REQUESTID_PREFIX, index));