Skip to content

Commit

Permalink
QT wallet: properly display state open block in history
Browse files Browse the repository at this point in the history
State open block should be marked as "Receive"
  • Loading branch information
SergiySW authored Oct 6, 2024
1 parent ab093d5 commit 330d54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/qt/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ class short_text_visitor : public nano::block_visitor
{
auto balance (block_a.hashables.balance.number ());
auto previous_balance = ledger.any.block_balance (transaction, block_a.hashables.previous);
if (!previous_balance)
if (!block_a.hashables.previous.is_zero () && !previous_balance)
{
type = "Unknown (pruned)";
amount = 0;
Expand Down

0 comments on commit 330d54b

Please sign in to comment.