Merge pull request #9601

c06ebec wallet: shortchain history should include base block (0xFFFC0000)
This commit is contained in:
luigi1111 2025-01-06 12:23:05 -05:00
commit 0d51fd9caa
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -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;
}