diff options
author | j-berman <justinberman@protonmail.com> | 2022-09-21 20:12:16 -0600 |
---|---|---|
committer | j-berman <justinberman@protonmail.com> | 2022-09-21 21:54:57 -0600 |
commit | e9ce347f83801276e13510d6bb99dad6c07a4169 (patch) | |
tree | e1293a1b5c57bf537df393bb14c63ec3072166e3 /src/wallet/api | |
parent | Merge pull request #8556 (diff) | |
download | monero-e9ce347f83801276e13510d6bb99dad6c07a4169.tar.xz |
wallet2: fail to establish daemon cxn == "Disconnected" cxn status
Diffstat (limited to 'src/wallet/api')
-rw-r--r-- | src/wallet/api/wallet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 470206bc5..0d82a917c 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -63,8 +63,8 @@ namespace { static const int MAX_REFRESH_INTERVAL_MILLIS = 1000 * 60 * 1; // Default refresh interval when connected to remote node static const int DEFAULT_REMOTE_NODE_REFRESH_INTERVAL_MILLIS = 1000 * 10; - // Connection timeout 30 sec - static const int DEFAULT_CONNECTION_TIMEOUT_MILLIS = 1000 * 30; + // Connection timeout 20 sec + static const int DEFAULT_CONNECTION_TIMEOUT_MILLIS = 1000 * 20; std::string get_default_ringdb_path(cryptonote::network_type nettype) { @@ -2173,7 +2173,7 @@ bool WalletImpl::connectToDaemon() Wallet::ConnectionStatus WalletImpl::connected() const { uint32_t version = 0; - bool wallet_is_outdated, daemon_is_outdated = false; + bool wallet_is_outdated = false, daemon_is_outdated = false; m_is_connected = m_wallet->check_connection(&version, NULL, DEFAULT_CONNECTION_TIMEOUT_MILLIS, &wallet_is_outdated, &daemon_is_outdated); if (!m_is_connected) { |