diff options
author | xiphon <xiphon@protonmail.com> | 2021-01-07 13:38:15 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2021-01-07 13:38:15 +0000 |
commit | 015da03a6fb800527fec9b7997f4add772596679 (patch) | |
tree | 58c4f787b3fe28a83b8de397fcbcf09617b0b30c /src/wallet | |
parent | Merge pull request #7221 (diff) | |
download | monero-015da03a6fb800527fec9b7997f4add772596679.tar.xz |
wallet_rpc_server: don't abort on initial refresh failure
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 9 |
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) { |