mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
CT: Rename nCommitmentSize -> nCommittedSize
This commit is contained in:
parent
27bc93d754
commit
ab72a3dc05
3 changed files with 11 additions and 11 deletions
|
|
@ -661,7 +661,7 @@ bool VerifyAmounts(const CCoinsViewCache& cache, const CTransaction& tx, const C
|
|||
else
|
||||
{
|
||||
blindedInputs += 1;
|
||||
assert(val.vchCommitment.size() == CTxOutValue::nCommitmentSize);
|
||||
assert(val.vchCommitment.size() == CTxOutValue::nCommittedSize);
|
||||
if (secp256k1_pedersen_commitment_parse(secp256k1_ctx_verify_amounts, &commit, &val.vchCommitment[0]) != 1)
|
||||
return false;
|
||||
memcpy(p, &commit, sizeof(secp256k1_pedersen_commitment));
|
||||
|
|
@ -673,8 +673,8 @@ bool VerifyAmounts(const CCoinsViewCache& cache, const CTransaction& tx, const C
|
|||
for (size_t i = 0; i < tx.vout.size(); ++i)
|
||||
{
|
||||
const CTxOutValue& val = tx.vout[i].nValue;
|
||||
assert(val.vchCommitment.size() == CTxOutValue::nCommitmentSize);
|
||||
if (val.vchNonceCommitment.size() > CTxOutValue::nCommitmentSize || val.vchRangeproof.size() > 5000)
|
||||
assert(val.vchCommitment.size() == CTxOutValue::nCommittedSize);
|
||||
if (val.vchNonceCommitment.size() > CTxOutValue::nCommittedSize || val.vchRangeproof.size() > 5000)
|
||||
return false;
|
||||
if (val.IsAmount()) {
|
||||
nPlainAmount += val.GetAmount();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue