Skip to content

Commit 55f6e34

Browse files
CopilotDeejae69
andcommitted
chore: align snapshot error text
Co-authored-by: Deejae69 <179696940+Deejae69@users.noreply.github.com> Agent-Logs-Url: https://github.com/Deejae69/nethermind/sessions/dca6063e-0d71-4707-af2a-aad7ffcd5f30
1 parent ae87aec commit 55f6e34

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Nethermind/Nethermind.Xdc.Test/XdcSealValidatorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public void ValidateParams_EmptyMasternodes_ReturnsFalse()
275275
XdcSealValidator validator = new XdcSealValidator(Substitute.For<ISnapshotManager>(), epochSwitchManager, specProvider);
276276

277277
Assert.That(validator.ValidateParams(parent, header, out var error), Is.False);
278-
Assert.That(error, Does.Contain("Snap shot returned no master nodes"));
278+
Assert.That(error, Does.Contain("Snapshot returned no master nodes"));
279279
}
280280

281281
private static QuorumCertificate CreateQc(BlockRoundInfo roundInfo, PrivateKey[] keys, ulong gapNumber)

src/Nethermind/Nethermind.Xdc/XdcSealValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public bool ValidateParams(BlockHeader parent, BlockHeader header, out string er
103103
masternodes = epochSwitchInfo.Masternodes;
104104
if (masternodes is null || masternodes.Length == 0)
105105
{
106-
error = $"Snap shot returned no master nodes for header \n{xdcHeader}";
106+
error = $"Snapshot returned no master nodes for header \n{xdcHeader}";
107107
return false;
108108
}
109109
}

0 commit comments

Comments
 (0)