diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-02-15 21:50:34 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-02-15 21:50:34 -0500 |
commit | bf53f55366cbc22fa566fa5d5a9a768e193e17d3 (patch) | |
tree | b68ba0c5a42fb28b8868aeaa5276a1010a153ae4 /src | |
parent | Merge pull request #7275 (diff) | |
parent | wallet_rpc_server: don't abort on initial refresh failure (diff) | |
download | monero-bf53f55366cbc22fa566fa5d5a9a768e193e17d3.tar.xz |
Merge pull request #7288
015da03 wallet_rpc_server: don't abort on initial refresh failure (xiphon)
Diffstat (limited to 'src')
-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) { |