aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-11 01:15:53 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-11 10:23:45 +0000
commitb63ea060de5d9420f176419f1cb9c3656ccd874b (patch)
treec174aeb90fd10d325abcc33a4d80eda9b818c3d5 /src/simplewallet
parentMerge pull request #3368 (diff)
downloadmonero-b63ea060de5d9420f176419f1cb9c3656ccd874b.tar.xz
simplewallet: do not call a RPC when displaying the prompt
Speeds up refresh when you have a lot of in/out transactions
Diffstat (limited to 'src/simplewallet')
-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 cbb174e1a..6491955c6 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -5862,8 +5862,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)");