mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
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:
parent
88067ddbe4
commit
a8a1a933dc
1 changed files with 1 additions and 3 deletions
|
|
@ -52,9 +52,7 @@ CAmountMap GetFeeMap(const CTransaction& tx) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CRangeCheck::operator()() {
|
bool CRangeCheck::operator()() {
|
||||||
if (val->IsExplicit()) {
|
assert(val->IsCommitment());
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!CachingRangeProofChecker(store).VerifyRangeProof(rangeproof, val->vchCommitment, assetCommitment, scriptPubKey, secp256k1_ctx_verify_amounts)) {
|
if (!CachingRangeProofChecker(store).VerifyRangeProof(rangeproof, val->vchCommitment, assetCommitment, scriptPubKey, secp256k1_ctx_verify_amounts)) {
|
||||||
error = SCRIPT_ERR_RANGEPROOF;
|
error = SCRIPT_ERR_RANGEPROOF;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue