diff --git a/src/primitives/transaction.cpp b/src/primitives/transaction.cpp index b1ebdd6a28..1da9811600 100644 --- a/src/primitives/transaction.cpp +++ b/src/primitives/transaction.cpp @@ -106,7 +106,7 @@ std::string CAssetIssuance::ToString() const str += "CAssetIssuance("; str += assetBlindingNonce.ToString(); str += ", "; - str += hashAssetIdentifier.ToString(); + str += assetEntropy.ToString(); str += strprintf(", %s", (nAmount.IsAmount() ? strprintf("%d.%08d", nAmount.GetAmount() / COIN, nAmount.GetAmount() % COIN) : std::string("UNKNOWN"))); if (!nInflationKeys.IsNull()) str += strprintf(", %s", (nInflationKeys.IsAmount() ? strprintf("%d.%08d", nInflationKeys.GetAmount() / COIN, nInflationKeys.GetAmount() % COIN) : std::string("UNKNOWN"))); diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 5e491d41dc..b9ba0f29bc 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -334,7 +334,7 @@ public: // The original asset entropy (combination of Ricardian contract // and outpoint used) which was used to generate the fixed asset // tag and reissuance tokens. - uint256 hashAssetIdentifier; + uint256 assetEntropy; // Both explicit and blinded issuance amounts are supported // (see class definition for CTxOutValue for details). @@ -357,7 +357,7 @@ public: inline void SerializationOp(Stream& s, Operation ser_action, int nType, int nVersion) { READWRITE(assetBlindingNonce); - READWRITE(hashAssetIdentifier); + READWRITE(assetEntropy); READWRITE(nAmount); READWRITE(nInflationKeys); } @@ -368,7 +368,7 @@ public: friend bool operator==(const CAssetIssuance& a, const CAssetIssuance& b) { return a.assetBlindingNonce == b.assetBlindingNonce && - a.hashAssetIdentifier == b.hashAssetIdentifier && + a.assetEntropy == b.assetEntropy && a.nAmount == b.nAmount && a.nInflationKeys == b.nInflationKeys; }