aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-21 19:00:27 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-22 14:20:55 +0000
commit3f5fb6fe6df90afc581257c8cefe1aea53e60706 (patch)
tree0c9bff217648478e501131e94c8b24fae05e2e3f /src/simplewallet/simplewallet.h
parentMerge pull request #3429 (diff)
downloadmonero-3f5fb6fe6df90afc581257c8cefe1aea53e60706.tar.xz
simplewallet: add --untrusted-daemon option
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h
index f26f69353..ef4ecb1fd 100644
--- a/src/simplewallet/simplewallet.h
+++ b/src/simplewallet/simplewallet.h
@@ -228,6 +228,7 @@ namespace cryptonote
bool print_ring_members(const std::vector<tools::wallet2::pending_tx>& ptx_vector, std::ostream& ostr);
std::string get_prompt() const;
bool print_seed(bool encrypted);
+ bool is_daemon_trusted() const { return *m_trusted_daemon; }
/*!
* \brief Prints the seed with a nice message
@@ -330,7 +331,7 @@ namespace cryptonote
bool m_restore_deterministic_wallet; // recover flag
bool m_restore_multisig_wallet; // recover flag
bool m_non_deterministic; // old 2-random generation
- bool m_trusted_daemon;
+ boost::optional<bool> m_trusted_daemon;
bool m_allow_mismatched_daemon_version;
bool m_restoring; // are we restoring, by whatever method?
uint64_t m_restore_height; // optional