diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 9a001abf..e249080b 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -428,8 +428,10 @@ uint64_t WalletImpl::daemonBlockChainHeight() const uint64_t result = m_wallet->get_daemon_blockchain_height(err); if (!err.empty()) { LOG_ERROR(__FUNCTION__ << ": " << err); + result = 0; m_errorString = err; m_status = Status_Error; + } else { m_status = Status_Ok; m_errorString = "";