mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Add comment on witness-null issuance transactions' invalidity
This commit is contained in:
parent
5fe9c2cbeb
commit
1599356bb2
1 changed files with 6 additions and 0 deletions
|
|
@ -862,6 +862,9 @@ bool VerifyAmounts(const CCoinsViewCache& cache, const CTransaction& tx, std::ve
|
|||
return false;
|
||||
}
|
||||
if (!issuance.nAmount.IsNull()) {
|
||||
// Note: This check disallows issuances in transactions with *no* witness data.
|
||||
// This can be relaxed in a future update as a HF by passing in an empty rangeproof
|
||||
// to `VerifyIssuanceAmount` instead.
|
||||
if (i >= tx.wit.vtxinwit.size()) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -889,6 +892,9 @@ bool VerifyAmounts(const CCoinsViewCache& cache, const CTransaction& tx, std::ve
|
|||
return false;
|
||||
}
|
||||
|
||||
// Note: This check disallows issuances in transactions with *no* witness data.
|
||||
// This can be relaxed in a future update as a HF by passing in an empty rangeproof
|
||||
// to `VerifyIssuanceAmount` instead.
|
||||
if (i >= tx.wit.vtxinwit.size()) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue