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 May 17, 2023
1 parent 7074b86 commit f56f57b
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 @@ -940,6 +940,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 f56f57b

Please sign in to comment.