diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-01-15 14:03:35 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-01-15 14:03:48 +0200 |
commit | 9e0516c1dd2bd8616db90a3530bb8fbd67d5e90e (patch) | |
tree | 7ebae05738df565ce0a7e8b93cec4c6ebe438c42 /src/wallet/wallet2.h | |
parent | Merge pull request #214 (diff) | |
parent | Add a --restricted-rpc flag to simplewallet (diff) | |
download | monero-9e0516c1dd2bd8616db90a3530bb8fbd67d5e90e.tar.xz |
Merge pull request #215
24d500c Add a --restricted-rpc flag to simplewallet (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 9b60d6ac5..1febfba39 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -82,7 +82,7 @@ namespace tools { wallet2(const wallet2&) : m_run(true), m_callback(0), m_testnet(false) {}; public: - wallet2(bool testnet = false) : m_run(true), m_callback(0), m_testnet(testnet), is_old_file_format(false) {}; + wallet2(bool testnet = false, bool restricted = false) : m_run(true), m_callback(0), m_testnet(testnet), m_restricted(restricted), is_old_file_format(false) {}; struct transfer_details { uint64_t m_block_height; @@ -196,6 +196,7 @@ namespace tools bool refresh(size_t & blocks_fetched, bool& received_money, bool& ok); bool testnet() { return m_testnet; } + bool restricted() const { return m_restricted; } uint64_t balance(); uint64_t unlocked_balance(); @@ -297,6 +298,7 @@ namespace tools i_wallet2_callback* m_callback; bool m_testnet; + bool m_restricted; std::string seed_language; /*!< Language of the mnemonics (seed). */ bool is_old_file_format; /*!< Whether the wallet file is of an old file format */ }; |