Skip to content

Commit

Permalink
Merge pull request #9601
Browse files Browse the repository at this point in the history
c06ebec wallet: shortchain history should include base block (0xFFFC0000)
  • Loading branch information
luigi1111 committed Jan 6, 2025
2 parents 222ca26 + c06ebec commit 0d51fd9
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 @@ -3013,6 +3013,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 0d51fd9

Please sign in to comment.