From 330d54b7b629b9270f15dbc0a8258f907c6ab74a Mon Sep 17 00:00:00 2001 From: "Dani (Sergey) Kroshnin" Date: Sun, 6 Oct 2024 21:14:21 +0100 Subject: [PATCH] QT wallet: properly display state open block in history State open block should be marked as "Receive" --- nano/qt/qt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/qt/qt.cpp b/nano/qt/qt.cpp index b7e1e13be1..9ad16d8324 100644 --- a/nano/qt/qt.cpp +++ b/nano/qt/qt.cpp @@ -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;