Skip to content

Commit

Permalink
Update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW authored Oct 25, 2024
1 parent fe35fd6 commit 05bb8d4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nano/qt/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,9 @@ class short_text_visitor : public nano::block_visitor
debug_assert (!previous_balance || balance == previous_balance);
type = "Epoch";
amount = 0;
if (!previous_balance)
if (!previous_balance && !block_a.hashables.previous.is_zero ())
{
// Epoch block with previous balance error is pruned only if it isn't open block for an account
type = "Epoch (pruned)";
}
account = ledger.epoch_signer (block_a.hashables.link);
Expand All @@ -641,7 +642,11 @@ class short_text_visitor : public nano::block_visitor
}
if (!previous_balance)
{
type = "Receive (pruned)";
if (!block_a.hashables.previous.is_zero ())
{
// Receive block with previous balance error is pruned only if it isn't open block for an account
type = "Receive (pruned)";
}
amount = 0;
}
else
Expand Down

0 comments on commit 05bb8d4

Please sign in to comment.