diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-08-11 22:33:38 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-08-11 22:33:38 -0400 |
| commit | cb084663943a835e70687c399495042424101cf1 (patch) | |
| tree | 828f27c18a5688c478a704094da9638aa626619b /src/wallet/api/wallet.cpp | |
| parent | 5cebb8edc008c1884ef08fb8726fe95460031557 (diff) | |
| parent | a3d2b71ee98905f96a12e312a769c8614dcba0bf (diff) | |
| download | monzero-core-cb084663943a835e70687c399495042424101cf1.tar.gz monzero-core-cb084663943a835e70687c399495042424101cf1.tar.xz monzero-core-cb084663943a835e70687c399495042424101cf1.zip | |
Merge pull request #7802
a3d2b71 wallet_api: expose offline mode status (rating89us)
Diffstat (limited to 'src/wallet/api/wallet.cpp')
| -rw-r--r-- | src/wallet/api/wallet.cpp | 5 |
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); |
