Autorescan wallets when internal data structure corrups.
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -172,10 +172,19 @@ namespace WalletWasabi.Gui
#region BitcoinStoreInitialization
+ try
+ {
await bstoreInitTask.ConfigureAwait(false);
// Make sure that the height of the wallets will not be better than the current height of the filters.
WalletManager.SetMaxBestHeight(BitcoinStore.IndexStore.SmartHeaderChain.TipHeight);
+ }
+ catch
+ {
+ // If our internal data structures in the Bitcoin Store gets corrupted, then it's better to rescan all the wallets.
+ WalletManager.SetMaxBestHeight(0);
+ throw;
+ }
#endregion BitcoinStoreInitialization

Autorescan wallets when internal data structure corrups.