mirror of
https://github.com/monero-project/monero.git
synced 2025-01-09 20:40:11 +00:00
wallet: shortchain history should include base block
This commit is contained in:
parent
893916ad09
commit
c06ebeceb7
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
size_t sz = blockchain_size - m_blockchain.offset();
|
||||||
if(!sz)
|
if(!sz)
|
||||||
{
|
{
|
||||||
|
if(m_blockchain.size() > m_blockchain.offset())
|
||||||
|
ids.push_back(m_blockchain[m_blockchain.offset()]);
|
||||||
ids.push_back(m_blockchain.genesis());
|
ids.push_back(m_blockchain.genesis());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue