Skip to content

Commit

Permalink
Make it clear that the CRangeCheck is not called on explicit values
Browse files Browse the repository at this point in the history
That is enforced by the `VerifyAmounts` method for regular transactions
and by the `VerifyIssuanceAmounts` method for issuance values.
  • Loading branch information
stevenroose committed Feb 18, 2021
1 parent 88067dd commit a8a1a93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/confidential_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8a1a93

Please sign in to comment.