Check broken blocks
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -708,7 +708,10 @@ namespace WalletWasabi.Services
if (foundBlockFromCore != null && !foundBlockFromCore.HeaderOnly && foundBlockFromCore.Check())
{
Logger.LogInfo<WalletService>($"Block acquired from disk (source: Bitcoin Core): {hash}");
+ if (foundBlockFromCore.Check())
+ {
block = foundBlockFromCore;
+ }
break;
}
}
@@ -722,7 +725,10 @@ namespace WalletWasabi.Services
if (foundBlockFromCore2 != null && !foundBlockFromCore2.HeaderOnly && foundBlockFromCore2.Check())
{
Logger.LogInfo<WalletService>($"Block acquired from disk (source: Bitcoin Core): {hash}");
+ if (foundBlockFromCore.Check())
+ {
block = foundBlockFromCore2;
+ }
break;
}
}
@@ -759,7 +765,10 @@ namespace WalletWasabi.Services
if (foundBlockFromCore3 != null && !foundBlockFromCore3.HeaderOnly && foundBlockFromCore3.Check())
{
Logger.LogInfo<WalletService>($"Block acquired from disk (source: Bitcoin Core): {hash}");
+ if (foundBlockFromCore.Check())
+ {
block = foundBlockFromCore3;
+ }
break;
}
}

Check broken blocks