diff options
| author | 0xFFFC0000 <0xFFFC0000@proton.me> | 2024-12-04 16:15:20 +0000 |
|---|---|---|
| committer | 0xFFFC0000 <0xFFFC0000@proton.me> | 2024-12-04 16:15:20 +0000 |
| commit | 34c7d31efbd9b5dd4a94d875743e680c2f032094 (patch) | |
| tree | d0b8c3300817cf4dc0188d39cce92ecdcdfea4bd /src/wallet/wallet2.cpp | |
| parent | 58a1d54a4f90a235616ede3f8ebae2b8dca41589 (diff) | |
| download | monzero-core-34c7d31efbd9b5dd4a94d875743e680c2f032094.tar.gz monzero-core-34c7d31efbd9b5dd4a94d875743e680c2f032094.tar.xz monzero-core-34c7d31efbd9b5dd4a94d875743e680c2f032094.zip | |
wallet: shortchain history should include base block
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 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<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; } |
