From 851e1e349c1cca0d25e2fcab31b09840973fbb80 Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:29:38 +0100 Subject: [PATCH 1/7] Update Dockerfile.chiseled corrected spelling error --- Dockerfile.chiseled | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.chiseled b/Dockerfile.chiseled index 936c78877dc..cd327a31b8e 100644 --- a/Dockerfile.chiseled +++ b/Dockerfile.chiseled @@ -15,7 +15,7 @@ RUN arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH") && \ dotnet publish src/Nethermind/Nethermind.Runner -c $BUILD_CONFIG -a $arch -o /publish --sc false \ -p:BuildTimestamp=$BUILD_TIMESTAMP -p:Commit=$COMMIT_HASH -# Creating these directiories here is needed to ensure the correct permissions +# Creating these directories here is needed to ensure the correct permissions RUN cd /publish && \ mkdir keystore && \ mkdir logs && \ From 2b1c8741fc232dfa1052885ab0de1bfe915b484a Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:31:09 +0100 Subject: [PATCH 2/7] Update CalculateRequestIdTest.cs fixed spelling mistake --- .../Network/CalculateRequestIdTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.AccountAbstraction.Test/Network/CalculateRequestIdTest.cs b/src/Nethermind/Nethermind.AccountAbstraction.Test/Network/CalculateRequestIdTest.cs index 3b7d97f06b9..846ac920899 100644 --- a/src/Nethermind/Nethermind.AccountAbstraction.Test/Network/CalculateRequestIdTest.cs +++ b/src/Nethermind/Nethermind.AccountAbstraction.Test/Network/CalculateRequestIdTest.cs @@ -16,7 +16,7 @@ public class CalculateRequestIdTest [Test] public void Calculates_RequestId_Correctly_No_Signature() { - //todo: find another simialr transaction on a different network like holesky as goerli is being phased out. + //todo: find another similar transaction on a different network like holesky as goerli is being phased out. //Using the following transaction as reference: https://goerli.etherscan.io/tx/0xa9236155292e30bfb43c5a758e0c906e18697cf23198f81e2a72e5322cd0acb7#eventlog UserOperation userOperation = new(new UserOperationRpc { From e3a9d8941a28c3204cf8133338f7eb652b19956a Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:33:24 +0100 Subject: [PATCH 3/7] Update ISyncConfig.cs fixed spelling error --- .../Nethermind.Blockchain/Synchronization/ISyncConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Blockchain/Synchronization/ISyncConfig.cs b/src/Nethermind/Nethermind.Blockchain/Synchronization/ISyncConfig.cs index 551a9856a33..35c6c3fc1ac 100644 --- a/src/Nethermind/Nethermind.Blockchain/Synchronization/ISyncConfig.cs +++ b/src/Nethermind/Nethermind.Blockchain/Synchronization/ISyncConfig.cs @@ -80,7 +80,7 @@ public interface ISyncConfig : IConfig public long AncientBodiesBarrierCalc => Math.Max(1, Math.Min(PivotNumberParsed, AncientBodiesBarrier)); [ConfigItem(Description = $$""" - The earliest receipt downloaded with fast sync when `{{nameof(DownloadReceiptsInFastSync)}}` is set to `true`. The actual value is determined as folows: + The earliest receipt downloaded with fast sync when `{{nameof(DownloadReceiptsInFastSync)}}` is set to `true`. The actual value is determined as follows: ``` max{ 1, min{ PivotNumber, max{ AncientBodiesBarrier, AncientReceiptsBarrier } } } From 03c1d91011077b49e3795c7e3e83af6efd2a0a18 Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:35:12 +0100 Subject: [PATCH 4/7] Update CliModuleLoader.cs fixed spelling mistake --- src/Nethermind/Nethermind.Cli/Modules/CliModuleLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Cli/Modules/CliModuleLoader.cs b/src/Nethermind/Nethermind.Cli/Modules/CliModuleLoader.cs index 88179e89ac2..41bba31a0da 100644 --- a/src/Nethermind/Nethermind.Cli/Modules/CliModuleLoader.cs +++ b/src/Nethermind/Nethermind.Cli/Modules/CliModuleLoader.cs @@ -66,7 +66,7 @@ private void LoadModule(CliModuleBase module) if (cliModuleAttribute is null) { _cliConsole.WriteErrorLine( - $"Could not load module {module.GetType().Name} bacause of a missing {nameof(CliModuleAttribute)}."); + $"Could not load module {module.GetType().Name} because of a missing {nameof(CliModuleAttribute)}."); return; } From 9582e8ae1858ba219d0d90dc6f46dfb3636ed037 Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:36:49 +0100 Subject: [PATCH 5/7] Update MiningConfig.cs fixed spelling mistakes --- src/Nethermind/Nethermind.Consensus/MiningConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Consensus/MiningConfig.cs b/src/Nethermind/Nethermind.Consensus/MiningConfig.cs index dbf2398286a..25677828cae 100644 --- a/src/Nethermind/Nethermind.Consensus/MiningConfig.cs +++ b/src/Nethermind/Nethermind.Consensus/MiningConfig.cs @@ -64,7 +64,7 @@ public IBlocksConfig? BlocksConfig { get { - // Lazt initalisation due to the awaiting of interface defaults application on assembly + // Last initialisation due to the awaiting of interface defaults application on assembly _blocksConfig ??= new BlocksConfig(); return _blocksConfig; From 0b52b8553f8ad889cac4c61868b70e3a7c75cb52 Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:37:40 +0100 Subject: [PATCH 6/7] Update TargetAdjustedGasLimitCalculator.cs fixed spelling mistake --- .../Nethermind.Consensus/TargetAdjustedGasLimitCalculator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Consensus/TargetAdjustedGasLimitCalculator.cs b/src/Nethermind/Nethermind.Consensus/TargetAdjustedGasLimitCalculator.cs index 47ce7b02336..9fc619e58d2 100644 --- a/src/Nethermind/Nethermind.Consensus/TargetAdjustedGasLimitCalculator.cs +++ b/src/Nethermind/Nethermind.Consensus/TargetAdjustedGasLimitCalculator.cs @@ -26,7 +26,7 @@ public long GetGasLimit(BlockHeader parentHeader) long? targetGasLimit = _blocksConfig.TargetBlockGasLimit; long newBlockNumber = parentHeader.Number + 1; - IReleaseSpec spec = _specProvider.GetSpec(newBlockNumber, parentHeader.Timestamp); // taking the parent timestamp is a temprory solution + IReleaseSpec spec = _specProvider.GetSpec(newBlockNumber, parentHeader.Timestamp); // taking the parent timestamp is a temporary solution if (targetGasLimit is not null) { long maxGasLimitDifference = Math.Max(0, parentGasLimit / spec.GasLimitBoundDivisor - 1); From d2df29520a5a587ba9c4bfaeaacd51caf99dd464 Mon Sep 17 00:00:00 2001 From: bchcoke <2878141+bchcoke@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:39:19 +0100 Subject: [PATCH 7/7] Update RecoverSignature.cs fixed spelling mistake --- .../Nethermind.Consensus/Processing/RecoverSignature.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nethermind/Nethermind.Consensus/Processing/RecoverSignature.cs b/src/Nethermind/Nethermind.Consensus/Processing/RecoverSignature.cs index eabaacd5d3a..73583c58e03 100644 --- a/src/Nethermind/Nethermind.Consensus/Processing/RecoverSignature.cs +++ b/src/Nethermind/Nethermind.Consensus/Processing/RecoverSignature.cs @@ -65,7 +65,7 @@ public void RecoverData(Block block) } catch (Exception e) { - if (_logger.IsError) _logger.Error($"An error occured while getting pending a transaction from TxPool, Transaction: {blockTransaction}", e); + if (_logger.IsError) _logger.Error($"An error occurred while getting a pending transaction from TxPool, Transaction: {blockTransaction}", e); } Address sender = transaction?.SenderAddress;