aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 68f25de42..bee27e12a 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -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();
if(!sz)
{
+ if(m_blockchain.size() > m_blockchain.offset())
+ ids.push_back(m_blockchain[m_blockchain.offset()]);
ids.push_back(m_blockchain.genesis());
return;
}