mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 21:57:46 +00:00
libwallet_api: explicitly return 0 in Wallet::daemonBlockChainHeight()
on error
This commit is contained in:
parent
aef92f27d9
commit
a6688200fb
1 changed files with 2 additions and 0 deletions
|
@ -428,8 +428,10 @@ uint64_t WalletImpl::daemonBlockChainHeight() const
|
||||||
uint64_t result = m_wallet->get_daemon_blockchain_height(err);
|
uint64_t result = m_wallet->get_daemon_blockchain_height(err);
|
||||||
if (!err.empty()) {
|
if (!err.empty()) {
|
||||||
LOG_ERROR(__FUNCTION__ << ": " << err);
|
LOG_ERROR(__FUNCTION__ << ": " << err);
|
||||||
|
result = 0;
|
||||||
m_errorString = err;
|
m_errorString = err;
|
||||||
m_status = Status_Error;
|
m_status = Status_Error;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
m_status = Status_Ok;
|
m_status = Status_Ok;
|
||||||
m_errorString = "";
|
m_errorString = "";
|
||||||
|
|
Loading…
Reference in a new issue