aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-14 16:08:14 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-14 16:08:14 +0200
commit534369eece19b289786d8457f87e62524748c2d2 (patch)
treefbaedd493cf745ee30a0bb73c2b5fd881d96a95e /src
parentMerge pull request #3372 (diff)
parentsimplewallet: do not call a RPC when displaying the prompt (diff)
downloadmonero-534369eece19b289786d8457f87e62524748c2d2.tar.xz
Merge pull request #3384
b63ea060 simplewallet: do not call a RPC when displaying the prompt (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index b6d94ef48..3668df7b9 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -5878,8 +5878,7 @@ std::string simple_wallet::get_prompt() const
{
std::string addr_start = m_wallet->get_subaddress_as_str({m_current_subaddress_account, 0}).substr(0, 6);
std::string prompt = std::string("[") + tr("wallet") + " " + addr_start;
- uint32_t version;
- if (!m_wallet->check_connection(&version))
+ if (!m_wallet->check_connection(NULL))
prompt += tr(" (no daemon)");
else if (!m_wallet->is_synced())
prompt += tr(" (out of sync)");