mirror of
https://github.com/monero-project/monero.git
synced 2025-01-12 03:19:31 -05:00
wallet: shortchain history should include base block
This commit is contained in:
parent
58a1d54a4f
commit
34c7d31efb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user