diff --git a/src/confidential_validation.cpp b/src/confidential_validation.cpp index 2a7f7bb51e..efc7b753c4 100644 --- a/src/confidential_validation.cpp +++ b/src/confidential_validation.cpp @@ -52,9 +52,7 @@ CAmountMap GetFeeMap(const CTransaction& tx) { } bool CRangeCheck::operator()() { - if (val->IsExplicit()) { - return true; - } + assert(val->IsCommitment()); if (!CachingRangeProofChecker(store).VerifyRangeProof(rangeproof, val->vchCommitment, assetCommitment, scriptPubKey, secp256k1_ctx_verify_amounts)) { error = SCRIPT_ERR_RANGEPROOF;