diff options
| author | = <=> | 2017-01-22 23:02:01 +0100 |
|---|---|---|
| committer | = <=> | 2017-01-22 23:02:01 +0100 |
| commit | e92c4fff1a1f3e286eec08f714a3b2116bb7b829 (patch) | |
| tree | 2ce93688168df0431a0e01583b69db8f5307220a | |
| parent | daf66621dcf43f36067465a1f1c99f5b1390c400 (diff) | |
| download | monzero-core-e92c4fff1a1f3e286eec08f714a3b2116bb7b829.tar.gz monzero-core-e92c4fff1a1f3e286eec08f714a3b2116bb7b829.tar.xz monzero-core-e92c4fff1a1f3e286eec08f714a3b2116bb7b829.zip | |
Wallet api: testnet getter
| -rw-r--r-- | src/wallet/api/wallet.h | 1 | ||||
| -rw-r--r-- | src/wallet/wallet2_api.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.h b/src/wallet/api/wallet.h index e3df7fd01..bee2342a2 100644 --- a/src/wallet/api/wallet.h +++ b/src/wallet/api/wallet.h @@ -94,6 +94,7 @@ public: void setRecoveringFromSeed(bool recoveringFromSeed); bool watchOnly() const; bool rescanSpent(); + bool testnet() const {return m_wallet->testnet();} PendingTransaction * createTransaction(const std::string &dst_addr, const std::string &payment_id, diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 78caddc0b..6cabcd849 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -295,6 +295,7 @@ struct Wallet virtual bool setPassword(const std::string &password) = 0; virtual std::string address() const = 0; virtual std::string path() const = 0; + virtual bool testnet() const = 0; /*! * \brief integratedAddress - returns integrated address for current wallet address and given payment_id. |
