revert redundant check2
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -708,10 +708,7 @@ 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;
}
}
@@ -725,10 +722,7 @@ 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;
}
}
@@ -765,10 +759,7 @@ 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;
}
}

revert redundant check2