CA: hashAssetIdentifier -> assetEntropy

This commit is contained in:
Mark Friedenbach 2017-03-04 15:11:15 -08:00 committed by Gregory Sanders
parent a25f6c6e08
commit 081b83229e
2 changed files with 4 additions and 4 deletions

View file

@ -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")));

View file

@ -324,7 +324,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).
@ -347,7 +347,7 @@ public:
inline void SerializationOp(Stream& s, Operation ser_action)
{
READWRITE(assetBlindingNonce);
READWRITE(hashAssetIdentifier);
READWRITE(assetEntropy);
READWRITE(nAmount);
READWRITE(nInflationKeys);
}
@ -358,7 +358,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;
}