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")] 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) 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; } 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; }