From 40e1236fcb1c54f3fc2040d9b415f8b4bd0f4db9 Mon Sep 17 00:00:00 2001 From: Maxnflaxl Date: Sat, 18 Apr 2026 17:42:54 +0200 Subject: [PATCH] #1990: display current block instead of treasury when calling block with no arguments --- explorer/adapter.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/explorer/adapter.cpp b/explorer/adapter.cpp index 092222f58d..5964f99c45 100644 --- a/explorer/adapter.cpp +++ b/explorer/adapter.cpp @@ -2859,6 +2859,13 @@ class Adapter : public Node::IObserver, public IAdapter { // ignore other cases } } + else + { + // No height specified — return the current (latest) block + sid = _nodeBackend.m_Cursor.get_Sid(); + s = _nodeBackend.m_Cursor.m_Full; + h = _nodeBackend.m_Cursor.m_hh.m_Height; + } if (h) return extract_block_from_row(sid, s, h);