Make it clear that the CRangeCheck is not called on explicit values

That is enforced by the `VerifyAmounts` method for regular transactions
and by the `VerifyIssuanceAmounts` method for issuance values.
This commit is contained in:
Steven Roose 2021-02-18 11:12:59 +00:00
parent 88067ddbe4
commit a8a1a933dc
No known key found for this signature in database
GPG key ID: 2F2A88D7F8D68E87

View file

@ -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;