aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-01-11 11:06:35 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-01-11 12:11:43 +0000
commit24d500ce8e27eade6e591f83e1381be62134e151 (patch)
tree41c6c08075eb9dbfcab565f97f2744852a257ded /src/wallet/wallet2.h
parentMerge pull request #206 (diff)
downloadmonero-24d500ce8e27eade6e591f83e1381be62134e151.tar.xz
Add a --restricted-rpc flag to simplewallet
It restricts RPC to a subset of "view only" commands. Kind of like a poor man's view key replacement.
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r--src/wallet/wallet2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h
index 073fff58b..314d8f4af 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();
@@ -296,6 +297,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 */
};