diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2025-01-06 12:23:28 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2025-01-06 12:23:28 -0500 |
| commit | 3e07750ea37dd6b906accac61dfb831005da0b15 (patch) | |
| tree | 3f83f3e25b7b08371a53fe3b46404c37806370f2 /src/wallet/wallet2.cpp | |
| parent | 2fe0f04c1e2eafdea998aa96fa5c116cc871696b (diff) | |
| parent | 34c7d31efbd9b5dd4a94d875743e680c2f032094 (diff) | |
| download | monzero-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.cpp | 2 |
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; } |
