Skip to content

Commit 0d51fd9

Browse files
committed
Merge pull request #9601
c06ebec wallet: shortchain history should include base block (0xFFFC0000)
2 parents 222ca26 + c06ebec commit 0d51fd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,8 @@ void wallet2::get_short_chain_history(std::list<crypto::hash>& ids, uint64_t gra
30133013
size_t sz = blockchain_size - m_blockchain.offset();
30143014
if(!sz)
30153015
{
3016+
if(m_blockchain.size() > m_blockchain.offset())
3017+
ids.push_back(m_blockchain[m_blockchain.offset()]);
30163018
ids.push_back(m_blockchain.genesis());
30173019
return;
30183020
}

0 commit comments

Comments
 (0)