mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 00:28:52 +00:00
Merge pull request #7802
a3d2b71
wallet_api: expose offline mode status (rating89us)
This commit is contained in:
commit
cb08466394
@ -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);
|
||||
|
@ -186,6 +186,7 @@ public:
|
||||
virtual std::string getCacheAttribute(const std::string &key) const override;
|
||||
|
||||
virtual void setOffline(bool offline) override;
|
||||
virtual bool isOffline() const override;
|
||||
|
||||
virtual bool setUserNote(const std::string &txid, const std::string ¬e) override;
|
||||
virtual std::string getUserNote(const std::string &txid) const override;
|
||||
|
@ -1034,6 +1034,7 @@ struct Wallet
|
||||
* \param offline - true/false
|
||||
*/
|
||||
virtual void setOffline(bool offline) = 0;
|
||||
virtual bool isOffline() const = 0;
|
||||
|
||||
//! blackballs a set of outputs
|
||||
virtual bool blackballOutputs(const std::vector<std::string> &outputs, bool add) = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user