aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2025-01-06 12:23:28 -0500
committerluigi1111 <luigi1111w@gmail.com>2025-01-06 12:23:28 -0500
commit3e07750ea37dd6b906accac61dfb831005da0b15 (patch)
tree3f83f3e25b7b08371a53fe3b46404c37806370f2 /src/wallet/wallet2.cpp
parent2fe0f04c1e2eafdea998aa96fa5c116cc871696b (diff)
parent34c7d31efbd9b5dd4a94d875743e680c2f032094 (diff)
downloadmonzero-core-3e07750ea37dd6b906accac61dfb831005da0b15.tar.gz
monzero-core-3e07750ea37dd6b906accac61dfb831005da0b15.tar.xz
monzero-core-3e07750ea37dd6b906accac61dfb831005da0b15.zip
Merge pull request #9602
34c7d31 wallet: shortchain history should include base block (0xFFFC0000)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 68f25de42..bee27e12a 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2946,6 +2946,8 @@ void wallet2::get_short_chain_history(std::list<crypto::hash>& 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;
}