mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #3384
b63ea060
simplewallet: do not call a RPC when displaying the prompt (moneromooo-monero)
This commit is contained in:
commit
534369eece
@ -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 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;
|
std::string prompt = std::string("[") + tr("wallet") + " " + addr_start;
|
||||||
uint32_t version;
|
if (!m_wallet->check_connection(NULL))
|
||||||
if (!m_wallet->check_connection(&version))
|
|
||||||
prompt += tr(" (no daemon)");
|
prompt += tr(" (no daemon)");
|
||||||
else if (!m_wallet->is_synced())
|
else if (!m_wallet->is_synced())
|
||||||
prompt += tr(" (out of sync)");
|
prompt += tr(" (out of sync)");
|
||||||
|
Loading…
Reference in New Issue
Block a user