mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
primitives: do not de/serialize asset issuance in bitcoin mode
Fixes a fuzztest failure related to `g_con_elementsmode`.
This commit is contained in:
parent
9c1de4d85f
commit
f2a0050f31
1 changed files with 2 additions and 2 deletions
|
|
@ -146,7 +146,7 @@ public:
|
|||
inline void Serialize(Stream& s) const {
|
||||
bool fHasAssetIssuance;
|
||||
COutPoint outpoint;
|
||||
if (prevout.n == (uint32_t) -1) {
|
||||
if (!g_con_elementsmode || prevout.n == (uint32_t) -1) {
|
||||
// Coinbase inputs do not have asset issuances attached
|
||||
// to them.
|
||||
fHasAssetIssuance = false;
|
||||
|
|
@ -189,7 +189,7 @@ public:
|
|||
COutPoint outpoint;
|
||||
s >> outpoint;
|
||||
|
||||
if (outpoint.n == (uint32_t) -1) {
|
||||
if (!g_con_elementsmode || outpoint.n == (uint32_t) -1) {
|
||||
// No asset issuance for Coinbase inputs.
|
||||
fHasAssetIssuance = false;
|
||||
prevout = outpoint;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue