Skip to content

Commit

Permalink
Including previous et hash into transcript (#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 committed Jul 22, 2022
1 parent fda7d55 commit 35ce4c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lelantus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,12 @@ bool ConnectBlockLelantus(
std::vector<unsigned char> prev_hash = GetAnonymitySetHash(pindexNew->pprev, latestCoinId, true);
if (!prev_hash.empty())
hash.Write(prev_hash.data(), 32);
else {
if(latestCoinId > 1) {
prev_hash = GetAnonymitySetHash(pindexNew->pprev, latestCoinId - 1, true);
hash.Write(prev_hash.data(), 32);
}
}
}

for (auto &coin : pindexNew->lelantusMintedPubCoins[latestCoinId]) {
Expand Down

0 comments on commit 35ce4c0

Please sign in to comment.