Merge pull request #6154

3b419333 wallet: don't issue node rpc proxy requests in '--offline' mode (xiphon)
This commit is contained in:
Alexander Blair 2020-01-24 20:07:01 -08:00
commit 159c78758a
No known key found for this signature in database
GPG Key ID: C64552D877C32479

View File

@ -5412,6 +5412,7 @@ bool wallet2::check_connection(uint32_t *version, bool *ssl, uint32_t timeout)
void wallet2::set_offline(bool offline) void wallet2::set_offline(bool offline)
{ {
m_offline = offline; m_offline = offline;
m_node_rpc_proxy.set_offline(offline);
m_http_client.set_auto_connect(!offline); m_http_client.set_auto_connect(!offline);
if (offline) if (offline)
{ {