aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2021-01-07 13:38:15 +0000
committerxiphon <xiphon@protonmail.com>2021-01-07 13:38:15 +0000
commit015da03a6fb800527fec9b7997f4add772596679 (patch)
tree58c4f787b3fe28a83b8de397fcbcf09617b0b30c /src
parentMerge pull request #7221 (diff)
downloadmonero-015da03a6fb800527fec9b7997f4add772596679.tar.xz
wallet_rpc_server: don't abort on initial refresh failure
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet_rpc_server.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 03db8b70f..13de73f8c 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -4438,7 +4438,14 @@ public:
wal->stop();
});
- wal->refresh(wal->is_trusted_daemon());
+ try
+ {
+ wal->refresh(wal->is_trusted_daemon());
+ }
+ catch (const std::exception& e)
+ {
+ LOG_ERROR(tools::wallet_rpc_server::tr("Initial refresh failed: ") << e.what());
+ }
// if we ^C during potentially length load/refresh, there's no server loop yet
if (quit)
{