From 93b22311e3f6c7e1e6d757e1b40122f57bf61011 Mon Sep 17 00:00:00 2001 From: xiphon Date: Thu, 14 Jan 2021 08:07:03 +0000 Subject: [PATCH] Subaddress: log account subaddresses refresh error --- src/libwalletqt/Subaddress.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libwalletqt/Subaddress.cpp b/src/libwalletqt/Subaddress.cpp index 013ea68f..9584f1ec 100644 --- a/src/libwalletqt/Subaddress.cpp +++ b/src/libwalletqt/Subaddress.cpp @@ -78,7 +78,14 @@ void Subaddress::setLabel(quint32 accountIndex, quint32 addressIndex, const QStr void Subaddress::refresh(quint32 accountIndex) const { - m_subaddressImpl->refresh(accountIndex); + try + { + m_subaddressImpl->refresh(accountIndex); + } + catch (const std::exception &e) + { + qCritical() << "Failed to refresh account" << accountIndex << "subaddresses:" << e.what(); + } getAll(); }