Don't fail on exception.
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -416,7 +416,14 @@ namespace WalletWasabi.Gui
ChaumianClient = new CcjClient(Synchronizer, Network, keyManager, Config.GetFallbackBackendUri(), null);
}
+ try
+ {
keyManager.CorrectBlockHeights(BitcoinStore.HashChain); // Block heights are wrong sometimes. It's a hack. We have to retroactively fix existing wallets, but also we have to figure out where we ruin the block heights.
+ }
+ catch (Exception ex) // Whatever this is not critical, but let's log it.
+ {
+ Logger.LogWarning(ex, nameof(Global));
+ }
WalletService = new WalletService(BitcoinStore, keyManager, Synchronizer, ChaumianClient, MemPoolService, Nodes, DataDir, Config.ServiceConfiguration);

Don't fail on exception.