From 8b597947877397c331d658125aaed80a76e589a2 Mon Sep 17 00:00:00 2001 From: Serhii Date: Fri, 27 Dec 2024 17:35:35 +0200 Subject: [PATCH] fix: handle sync status on updateFeeRates timeouts --- cw_bitcoin/lib/electrum_wallet.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cw_bitcoin/lib/electrum_wallet.dart b/cw_bitcoin/lib/electrum_wallet.dart index 3ab1505c9..f5e1af09e 100644 --- a/cw_bitcoin/lib/electrum_wallet.dart +++ b/cw_bitcoin/lib/electrum_wallet.dart @@ -508,6 +508,10 @@ abstract class ElectrumWalletBase } _feeRates = [slowFee, mediumFee, fastFee]; return; + } on TimeoutException catch (e) { + syncStatus = LostConnectionSyncStatus(); + printV('TimeoutException in updateFeeRates: $e'); + return; } catch (e) { printV(e); }