mirror of
https://github.com/monero-project/monero.git
synced 2025-12-11 09:31:28 +09:00
Merge pull request #9602
34c7d31 wallet: shortchain history should include base block (0xFFFC0000)
This commit is contained in:
commit
3e07750ea3
@ -2946,6 +2946,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…
x
Reference in New Issue
Block a user