From f1a1099b5e93104173ad8ffaff98a547605b0ff1 Mon Sep 17 00:00:00 2001 From: Pioua <136521243+dzizazda@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:28:28 +0000 Subject: [PATCH 1/4] typo fix --- src/Nethermind/Nethermind.Network/PeerManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Network/PeerManager.cs b/src/Nethermind/Nethermind.Network/PeerManager.cs index b61cedde97d..4b57d59000f 100644 --- a/src/Nethermind/Nethermind.Network/PeerManager.cs +++ b/src/Nethermind/Nethermind.Network/PeerManager.cs @@ -272,7 +272,7 @@ private async Task RunPeerUpdateLoop() if (remainingCandidates.Count == 0) { // Delay to prevent high CPU use. There is a shortcut path for newly discovered peer, so having - // a lower delay probably wont do much. + // a lower delay probably won't do much. await Task.Delay(TimeSpan.FromSeconds(1)); continue; } From 213c783814e708d1e8de948293f7537c97ce30f3 Mon Sep 17 00:00:00 2001 From: Pioua <136521243+dzizazda@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:28:56 +0000 Subject: [PATCH 2/4] typo fix --- src/Nethermind/Nethermind.Network/Metrics.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Network/Metrics.cs b/src/Nethermind/Nethermind.Network/Metrics.cs index 04d2667369f..97f04647899 100644 --- a/src/Nethermind/Nethermind.Network/Metrics.cs +++ b/src/Nethermind/Nethermind.Network/Metrics.cs @@ -9,7 +9,7 @@ namespace Nethermind.Network { - //TODO: consult on use of metric disabeling flags! + //TODO: consult on use of metric disabling flags! public static class Metrics { [KeyIsLabel("reason")] From 8be3484a0e51af2d6dfeaeed1628944a3620aef7 Mon Sep 17 00:00:00 2001 From: Pioua <136521243+dzizazda@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:30:52 +0000 Subject: [PATCH 3/4] typo fix --- .../P2P/ProtocolHandlers/ZeroNettyP2PHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Network/P2P/ProtocolHandlers/ZeroNettyP2PHandler.cs b/src/Nethermind/Nethermind.Network/P2P/ProtocolHandlers/ZeroNettyP2PHandler.cs index 4ba00d291f5..830e1372ab5 100644 --- a/src/Nethermind/Nethermind.Network/P2P/ProtocolHandlers/ZeroNettyP2PHandler.cs +++ b/src/Nethermind/Nethermind.Network/P2P/ProtocolHandlers/ZeroNettyP2PHandler.cs @@ -47,7 +47,7 @@ protected override void ChannelRead0(IChannelHandlerContext ctx, ZeroPacket inpu int uncompressedLength = SnappyCodec.GetUncompressedLength(content.Array, content.ArrayOffset + content.ReaderIndex, content.ReadableBytes); if (uncompressedLength > SnappyParameters.MaxSnappyLength) { - throw new Exception("Max message size exceeeded"); // TODO: disconnect here + throw new Exception("Max message size exceeded"); // TODO: disconnect here } if (content.ReadableBytes > SnappyParameters.MaxSnappyLength / 4) From 5614dcd11a365335fb49c42ff316681555e08322 Mon Sep 17 00:00:00 2001 From: Pioua <136521243+dzizazda@users.noreply.github.com> Date: Wed, 13 Dec 2023 00:31:56 +0000 Subject: [PATCH 4/4] typo fix --- .../P2P/Subprotocols/Les/LesProtocolHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Les/LesProtocolHandler.cs b/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Les/LesProtocolHandler.cs index efa8070e73a..b054f268238 100644 --- a/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Les/LesProtocolHandler.cs +++ b/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Les/LesProtocolHandler.cs @@ -288,7 +288,7 @@ public override void NotifyOfNewBlock(Block block, SendBlockMode mode) { BlockHeader firstCommonAncestor = SyncServer.FindLowestCommonAncestor(block.Header, _lastSentBlock); if (firstCommonAncestor is null) - throw new SubprotocolException($"Unable to send announcment to LES peer - No common ancestor found between {block.Header} and {_lastSentBlock}"); + throw new SubprotocolException($"Unable to send announcement to LES peer - No common ancestor found between {block.Header} and {_lastSentBlock}"); announceMessage.ReorgDepth = _lastSentBlock.Number - firstCommonAncestor.Number; }