From f56f57b067dfaf6954f3b527b7505ede93b2dec3 Mon Sep 17 00:00:00 2001 From: levonpetrosyan93 <45027856+levonpetrosyan93@users.noreply.github.com> Date: Fri, 22 Jul 2022 22:08:45 +0400 Subject: [PATCH] Including previous et hash into transcript (#1194) --- src/lelantus.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lelantus.cpp b/src/lelantus.cpp index 85ec738cc6..905fa98468 100644 --- a/src/lelantus.cpp +++ b/src/lelantus.cpp @@ -940,6 +940,12 @@ bool ConnectBlockLelantus( std::vector 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]) {