aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-07-19 00:15:15 +0200
committerrating89us <rating89us@rating89us.com>2021-07-19 00:30:36 +0200
commita3d2b71ee98905f96a12e312a769c8614dcba0bf (patch)
tree43e211b11f67ae6b5acd3d40715d17c84042f27e /src/wallet/api/wallet.cpp
parentMerge pull request #7764 (diff)
downloadmonero-a3d2b71ee98905f96a12e312a769c8614dcba0bf.tar.xz
wallet_api: expose offline mode status
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r--src/wallet/api/wallet.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index b4fa1ea8c..3a2074cc4 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -2392,6 +2392,11 @@ void WalletImpl::setOffline(bool offline)
m_wallet->set_offline(offline);
}
+bool WalletImpl::isOffline() const
+{
+ return m_wallet->is_offline();
+}
+
void WalletImpl::hardForkInfo(uint8_t &version, uint64_t &earliest_height) const
{
m_wallet->get_hard_fork_info(version, earliest_height);