mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 23:26:44 -08:00
wallet2_api: added Wallet::daemonBlockChainTargetHeight()
libwallet_api: Wallet::blockChainTargetHeight Signed-off-by: Jacob Brydolf <jacob@brydolf.net>
This commit is contained in:
@@ -441,6 +441,23 @@ uint64_t WalletImpl::daemonBlockChainHeight() const
|
||||
return result;
|
||||
}
|
||||
|
||||
uint64_t WalletImpl::daemonBlockChainTargetHeight() const
|
||||
{
|
||||
std::string err;
|
||||
uint64_t result = m_wallet->get_daemon_blockchain_target_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 = "";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
bool WalletImpl::refresh()
|
||||
{
|
||||
clearStatus();
|
||||
|
||||
Reference in New Issue
Block a user