Skip to content

Commit

Permalink
wallet: shortchain history should include base block
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFFFC0000 committed Dec 4, 2024
1 parent 58a1d54 commit 34c7d31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 34c7d31

Please sign in to comment.