mirror of
https://github.com/monero-project/monero.git
synced 2025-12-23 07:29:11 -08:00
wallet2_api: added Wallet::daemonBlockChainHeight()
This commit is contained in:
@@ -422,6 +422,21 @@ uint64_t WalletImpl::blockChainHeight() const
|
||||
return m_wallet->get_blockchain_current_height();
|
||||
}
|
||||
|
||||
uint64_t WalletImpl::daemonBlockChainHeight() const
|
||||
{
|
||||
std::string err;
|
||||
uint64_t result = m_wallet->get_daemon_blockchain_height(err);
|
||||
if (!err.empty()) {
|
||||
LOG_ERROR(__FUNCTION__ << ": " << err);
|
||||
m_errorString = err;
|
||||
m_status = Status_Error;
|
||||
} else {
|
||||
m_status = Status_Ok;
|
||||
m_errorString = "";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool WalletImpl::refresh()
|
||||
{
|
||||
clearStatus();
|
||||
|
||||
Reference in New Issue
Block a user