From 34c7d31efbd9b5dd4a94d875743e680c2f032094 Mon Sep 17 00:00:00 2001 From: 0xFFFC0000 <0xFFFC0000@proton.me> Date: Wed, 4 Dec 2024 16:15:20 +0000 Subject: [PATCH] wallet: shortchain history should include base block --- src/wallet/wallet2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 90b573169..3b80b7529 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2937,6 +2937,8 @@ void wallet2::get_short_chain_history(std::list& ids, uint64_t gra size_t sz = blockchain_size - m_blockchain.offset(); if(!sz) { + if(m_blockchain.size() > m_blockchain.offset()) + ids.push_back(m_blockchain[m_blockchain.offset()]); ids.push_back(m_blockchain.genesis()); return; }