Improve nullcheck based on this:
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -186,7 +186,7 @@ namespace WalletWasabi.Services
DeleteBlock(invalidBlockHash);
var blockState = KeyManager.TryRemoveBlockState(invalidBlockHash);
ProcessedBlocks.TryRemove(invalidBlockHash, out _);
- if (blockState.BlockHeight != default(Height))
+ if (blockState != null && blockState.BlockHeight != default(Height))
{
foreach (var toRemove in Coins.Where(x => x.Height == blockState.BlockHeight).Distinct().ToList())
{

Improve nullcheck based on this: https://github.com/zkSNACKs/WalletWasabi/pull/1368/commits/753c4f85f68b89bb9031e88b4cb87eeece9b1502