mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Disallow issuance-stuffing in tx deserialization
This commit is contained in:
parent
c977f2b99d
commit
8a3d622040
1 changed files with 3 additions and 0 deletions
|
|
@ -212,6 +212,9 @@ public:
|
|||
// The asset fields are deserialized only if they are present.
|
||||
if (fHasAssetIssuance) {
|
||||
READWRITE(assetIssuance);
|
||||
if (assetIssuance.IsNull()) {
|
||||
throw std::ios_base::failure("Superfluous issuance record");
|
||||
}
|
||||
} else if (ser_action.ForRead()) {
|
||||
assetIssuance.SetNull();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue