From 2d4f6e7e2203efbdf633a8dbe803b217c1b09132 Mon Sep 17 00:00:00 2001 From: Amirul Ashraf Date: Thu, 7 Nov 2024 20:16:04 +0800 Subject: [PATCH] Add lint rule for unused using (#7734) --- .editorconfig | 6 ++++++ src/Nethermind/Nethermind.Api/IBasicApi.cs | 1 - src/Nethermind/Nethermind.Api/INethermindApi.cs | 1 - src/Nethermind/Nethermind.Api/NethermindApi.cs | 1 - .../AuRaAdditionalBlockProcessorFactoryTests.cs | 1 - .../Nethermind.AuRa.Test/AuRaSealValidatorTests.cs | 1 - .../Reward/AuRaRewardCalculatorTests.cs | 1 - .../Transactions/TxPermissionFilterTest.cs | 1 - .../Validators/ContractBasedValidatorTests.cs | 1 - .../Validators/ListValidatorTests.cs | 1 - .../Validators/MultiValidatorTests.cs | 1 - .../BlockProcessorTests.cs | 1 - .../Producers/BlockProducerBaseTests.BaseFee.cs | 1 - .../BlockProducerBaseTests.IsProducingBlocks.cs | 1 - .../Services/HealthHintServiceTests.cs | 1 - .../Validators/TxValidatorTests.cs | 1 - .../Visitors/StartupTreeFixerTests.cs | 1 - .../BeaconBlockRoot/IBeaconBlockRootHandler.cs | 1 - .../Nethermind.Blockchain/Blocks/IBlockStore.cs | 1 - .../Nethermind.Consensus.AuRa/AuRaSealValidator.cs | 1 - .../AuRaValidatorFactory.cs | 1 - .../IAuRaValidatorFactory.cs | 1 - .../InitializeBlockchainAuRa.cs | 1 - .../InitializationSteps/StartBlockProducerAuRa.cs | 1 - .../Rewards/AuRaRewardCalculator.cs | 1 - .../Validators/ListBasedValidator.cs | 1 - .../Validators/MultiValidator.cs | 1 - .../CliqueChainSpecEngineParameters.cs | 2 -- .../CliqueHealthHintService.cs | 1 - .../NethDevChainSpecEngineParameters.cs | 2 -- .../IExecutionRequestProcessor.cs | 2 -- .../Messages/BlockErrorMessages.cs | 1 - .../Processing/BlockProcessor.cs | 1 - .../Blockchain/TestBlockchain.cs | 2 -- .../Nethermind.Core.Test/Builders/BlockBuilder.cs | 2 -- .../Nethermind.Core.Test/Builders/TestItem.cs | 2 -- .../Crypto/EthereumEcdsaTests.cs | 6 ------ .../Encoding/AuthorizationTupleDecoderTests.cs | 6 ------ .../AccountStateProviderExtensions.cs | 3 --- .../Nethermind.Core/AuthorizationTuple.cs | 1 - .../Extensions/UInt256Extensions.cs | 1 - src/Nethermind/Nethermind.Core/Transaction.cs | 1 - src/Nethermind/Nethermind.Crypto/EthereumEcdsa.cs | 4 ---- src/Nethermind/Nethermind.Crypto/IEthereumEcdsa.cs | 1 - .../Nethermind.Crypto/NullEthereumEcdsa.cs | 1 - src/Nethermind/Nethermind.Db/IDbProvider.cs | 3 --- .../Nethermind.Evm.Test/CodeInfoRepositoryTests.cs | 1 - .../TransactionProcessorEip7702Tests.cs | 1 - .../Nethermind.Evm/CodeInfoRepository.cs | 1 - src/Nethermind/Nethermind.Evm/EvmPooledMemory.cs | 1 - src/Nethermind/Nethermind.Evm/EvmState.cs | 1 - .../Nethermind.Evm/ICodeInfoRepository.cs | 1 - .../Nethermind.Evm/StackAccessTracker.cs | 1 - .../TransactionProcessing/TransactionProcessor.cs | 1 - .../Nethermind.Facade/BlockchainBridgeContract.cs | 1 - .../Nethermind.Init/Steps/InitializeBlockTree.cs | 1 - .../Nethermind.Init/Steps/InitializeNetwork.cs | 2 -- .../Modules/Eth/EthRpcModuleTests.EstimateGas.cs | 1 - .../Modules/Eth/EthRpcModuleTests.EthCall.cs | 1 - .../Modules/Eth/EthRpcModuleTests.GasPrice.cs | 1 - .../Modules/Eth/EthRpcModuleTests.cs | 1 - .../EthSimulateTestsPrecompilesWithRedirection.cs | 1 - .../Simulate/EthSimulateTestsSimplePrecompiles.cs | 1 - .../Modules/TraceRpcModuleTests.cs | 2 -- .../Nethermind.JsonRpc/Modules/Admin/PeerInfo.cs | 1 - .../Nethermind.JsonRpc/Modules/Eth/EthRpcModule.cs | 1 - .../WebSockets/JsonRpcSocketsClient.cs | 2 -- .../AuRaMergeBlockProducerEnvFactory.cs | 1 - .../InitializeBlockchainAuRaMerge.cs | 1 - .../Withdrawals/WithdrawalContractFactory.cs | 1 - ...uleTests.DelayBlockImprovementContextFactory.cs | 1 - ...duleTests.MockBlockImprovementContextFactory.cs | 1 - .../EngineModuleTests.Setup.cs | 2 -- ...eTests.StoringBlockImprovementContextFactory.cs | 1 - .../EngineModuleTests.V4.cs | 1 - .../ExecutionRequestsProcessorMock.cs | 1 - .../MergePluginTests.cs | 1 - .../Data/ExecutionPayloadV3.cs | 1 - .../Data/GetPayloadV4Result.cs | 1 - .../EngineRpcModule.Paris.cs | 2 -- .../EngineRpcModule.Prague.cs | 1 - .../Handlers/ForkchoiceUpdatedHandler.cs | 3 --- .../Handlers/GetPayloadBodiesByHashV1Handler.cs | 1 - .../Handlers/NewPayloadHandler.cs | 1 - .../IEngineRpcModule.Prague.cs | 3 --- .../Nethermind.Merge.Plugin/MergePlugin.cs | 5 ----- .../Synchronization/MergeSynchronizer.cs | 14 ++++++++------ .../Synchronization/UnsafePivotUpdator.cs | 1 - .../EnrDiscoveryTests.cs | 2 -- .../P2P/PacketSenderTests.cs | 1 - .../Subprotocols/Eth/V65/Eth65ProtocolHandler.cs | 1 - .../StaticNodes/StaticNodesManager.cs | 1 - .../Nethermind.Optimism/OPConfigHelper.cs | 1 - .../OptimismChainSpecEngineParameters.cs | 1 - .../Nethermind.Optimism/OptimismHeaderValidator.cs | 3 --- .../Nethermind.Optimism/OptimismPoSSwitcher.cs | 1 - .../OptimismSynchronizerModule.cs | 2 -- .../Rpc/RegisterOptimismRpcModules.cs | 1 - .../Ethereum/ContextWithMocks.cs | 1 - .../Nethermind.Runner.Test/EthereumRunnerTests.cs | 2 -- .../Nethermind.Runner/JsonRpc/Startup.cs | 1 - .../EthereumJsonSerializer.cs | 1 - .../BlockBodyDecoder.cs | 1 - .../Nethermind.Serialization.Rlp/BlockDecoder.cs | 1 - .../Eip7702/AuthorizationTupleDecoder.cs | 1 - .../ChainSpecStyle/ChainSpecLoaderTests.cs | 1 - .../TestChainSpecParametersProvider.cs | 1 - .../ChainSpecStyle/ChainSpecLoader.cs | 2 -- .../ChainSpecStyle/ChainSpecParametersProvider.cs | 3 --- .../ChainSpecStyle/Json/ChainSpecJson.cs | 3 --- .../FastBlocks/BodiesSyncFeedTests.cs | 1 - .../OldStyleFullSynchronizerTests.cs | 1 - .../SnapSync/SnapProviderTests.cs | 1 - .../SyncThreadTests.cs | 2 -- .../SynchronizerModuleTests.cs | 1 - .../SynchronizerTests.cs | 1 - .../DbTuner/SyncDbOptimizer.cs | 1 - .../FastBlocks/BodiesSyncFeed.cs | 2 -- .../FastBlocks/ReceiptsSyncFeed.cs | 1 - .../FastSync/TreeSync.cs | 1 - .../Nethermind.Synchronization/ISynchronizer.cs | 1 - .../ParallelSync/MultiSyncModeSelector.cs | 2 -- .../ParallelSync/SyncDispatcher.cs | 1 - .../SnapSync/ProgressTracker.cs | 1 - .../SnapSync/SnapProvider.cs | 1 - .../SnapSync/SnapProviderHelper.cs | 2 -- .../TaikoChainSpecEngineParameters.cs | 2 -- src/Nethermind/Nethermind.Trie/PatriciaTree.cs | 1 - .../Nethermind.Trie/Pruning/NullTrieStore.cs | 4 ---- .../Nethermind.Trie/Pruning/ReadOnlyTrieStore.cs | 1 - src/Nethermind/Nethermind.Trie/TrieNode.Visitor.cs | 1 - .../Filters/RecoverAuthorityFilter.cs | 1 - 132 files changed, 14 insertions(+), 190 deletions(-) diff --git a/.editorconfig b/.editorconfig index b8d038cba7f..8231be1be29 100644 --- a/.editorconfig +++ b/.editorconfig @@ -89,3 +89,9 @@ csharp_style_expression_bodied_local_functions = false:silent csharp_style_var_for_built_in_types = true:silent csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = false:suggestion + +# Coding convention + +dotnet_diagnostic.IDE0005.severity = error +dotnet_diagnostic.IDE0041.severity = error + diff --git a/src/Nethermind/Nethermind.Api/IBasicApi.cs b/src/Nethermind/Nethermind.Api/IBasicApi.cs index d6d8d320ef3..47bd60ab5bf 100644 --- a/src/Nethermind/Nethermind.Api/IBasicApi.cs +++ b/src/Nethermind/Nethermind.Api/IBasicApi.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Collections.Generic; using System.IO.Abstractions; using System.Linq; diff --git a/src/Nethermind/Nethermind.Api/INethermindApi.cs b/src/Nethermind/Nethermind.Api/INethermindApi.cs index 7c600b9f056..f47acbfa949 100644 --- a/src/Nethermind/Nethermind.Api/INethermindApi.cs +++ b/src/Nethermind/Nethermind.Api/INethermindApi.cs @@ -4,7 +4,6 @@ #nullable enable using System; using Nethermind.Config; -using Nethermind.Core; using Nethermind.Facade.Eth; using Nethermind.Facade.Eth.RpcTransaction; using Nethermind.Serialization.Rlp; diff --git a/src/Nethermind/Nethermind.Api/NethermindApi.cs b/src/Nethermind/Nethermind.Api/NethermindApi.cs index b6a3574c212..14495dfeb45 100644 --- a/src/Nethermind/Nethermind.Api/NethermindApi.cs +++ b/src/Nethermind/Nethermind.Api/NethermindApi.cs @@ -9,7 +9,6 @@ using Nethermind.Blockchain; using Nethermind.Blockchain.Blocks; using Nethermind.Blockchain.Filters; -using Nethermind.Blockchain.Find; using Nethermind.Blockchain.FullPruning; using Nethermind.Blockchain.Receipts; using Nethermind.Blockchain.Services; diff --git a/src/Nethermind/Nethermind.AuRa.Test/AuRaAdditionalBlockProcessorFactoryTests.cs b/src/Nethermind/Nethermind.AuRa.Test/AuRaAdditionalBlockProcessorFactoryTests.cs index 182f156e09c..f8a8d0fbfd8 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/AuRaAdditionalBlockProcessorFactoryTests.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/AuRaAdditionalBlockProcessorFactoryTests.cs @@ -13,7 +13,6 @@ using Nethermind.Consensus.AuRa.Validators; using Nethermind.Core; using Nethermind.Core.Specs; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Evm.TransactionProcessing; using Nethermind.JsonRpc.Modules.Eth.GasPrice; using Nethermind.Logging; diff --git a/src/Nethermind/Nethermind.AuRa.Test/AuRaSealValidatorTests.cs b/src/Nethermind/Nethermind.AuRa.Test/AuRaSealValidatorTests.cs index b9a71702903..bd744fc1a07 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/AuRaSealValidatorTests.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/AuRaSealValidatorTests.cs @@ -11,7 +11,6 @@ using Nethermind.Consensus.AuRa.Validators; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Core.Test.Builders; using Nethermind.Crypto; using Nethermind.Logging; diff --git a/src/Nethermind/Nethermind.AuRa.Test/Reward/AuRaRewardCalculatorTests.cs b/src/Nethermind/Nethermind.AuRa.Test/Reward/AuRaRewardCalculatorTests.cs index c83e8d09827..6402079e87c 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/Reward/AuRaRewardCalculatorTests.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/Reward/AuRaRewardCalculatorTests.cs @@ -13,7 +13,6 @@ using Nethermind.Core; using Nethermind.Core.Extensions; using Nethermind.Core.Test; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Core.Test.Builders; using Nethermind.Evm.Tracing; using Nethermind.Evm.TransactionProcessing; diff --git a/src/Nethermind/Nethermind.AuRa.Test/Transactions/TxPermissionFilterTest.cs b/src/Nethermind/Nethermind.AuRa.Test/Transactions/TxPermissionFilterTest.cs index 09c673e0126..2c579852324 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/Transactions/TxPermissionFilterTest.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/Transactions/TxPermissionFilterTest.cs @@ -13,7 +13,6 @@ using Nethermind.Consensus.AuRa; using Nethermind.Consensus.AuRa.Contracts; using Nethermind.Consensus.AuRa.Transactions; -using Nethermind.Consensus.AuRa.Validators; using Nethermind.Consensus.Processing; using Nethermind.Consensus.Rewards; using Nethermind.Consensus.Validators; diff --git a/src/Nethermind/Nethermind.AuRa.Test/Validators/ContractBasedValidatorTests.cs b/src/Nethermind/Nethermind.AuRa.Test/Validators/ContractBasedValidatorTests.cs index 6448452b0a3..8d07e36f39e 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/Validators/ContractBasedValidatorTests.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/Validators/ContractBasedValidatorTests.cs @@ -15,7 +15,6 @@ using Nethermind.Core; using Nethermind.Core.Crypto; using Nethermind.Core.Extensions; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Specs.Forks; using Nethermind.Core.Test.Builders; using Nethermind.Db; diff --git a/src/Nethermind/Nethermind.AuRa.Test/Validators/ListValidatorTests.cs b/src/Nethermind/Nethermind.AuRa.Test/Validators/ListValidatorTests.cs index b24b0a06020..91907602482 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/Validators/ListValidatorTests.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/Validators/ListValidatorTests.cs @@ -7,7 +7,6 @@ using FluentAssertions; using Nethermind.Consensus.AuRa.Validators; using Nethermind.Core; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Core.Test.Builders; using Nethermind.Logging; using NSubstitute; diff --git a/src/Nethermind/Nethermind.AuRa.Test/Validators/MultiValidatorTests.cs b/src/Nethermind/Nethermind.AuRa.Test/Validators/MultiValidatorTests.cs index a06c0245c51..674cdc1461a 100644 --- a/src/Nethermind/Nethermind.AuRa.Test/Validators/MultiValidatorTests.cs +++ b/src/Nethermind/Nethermind.AuRa.Test/Validators/MultiValidatorTests.cs @@ -12,7 +12,6 @@ using Nethermind.Core; using Nethermind.Core.Collections; using Nethermind.Core.Test.Builders; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Logging; using NSubstitute; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.Blockchain.Test/BlockProcessorTests.cs b/src/Nethermind/Nethermind.Blockchain.Test/BlockProcessorTests.cs index 402d67b329d..a9c11d23a2d 100644 --- a/src/Nethermind/Nethermind.Blockchain.Test/BlockProcessorTests.cs +++ b/src/Nethermind/Nethermind.Blockchain.Test/BlockProcessorTests.cs @@ -29,7 +29,6 @@ using Nethermind.Consensus.Rewards; using Nethermind.Core.Test.Blockchain; using Nethermind.Evm.TransactionProcessing; -using Nethermind.Specs.Test.ChainSpecStyle; namespace Nethermind.Blockchain.Test; diff --git a/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.BaseFee.cs b/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.BaseFee.cs index e51b2f803f9..3df241870a2 100644 --- a/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.BaseFee.cs +++ b/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.BaseFee.cs @@ -12,7 +12,6 @@ using Nethermind.Int256; using Nethermind.JsonRpc.Test.Modules; using Nethermind.Specs; -using Nethermind.Specs.Test.ChainSpecStyle; using Nethermind.TxPool; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.IsProducingBlocks.cs b/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.IsProducingBlocks.cs index d91d07d732a..0bb6554aca4 100644 --- a/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.IsProducingBlocks.cs +++ b/src/Nethermind/Nethermind.Blockchain.Test/Producers/BlockProducerBaseTests.IsProducingBlocks.cs @@ -24,7 +24,6 @@ using Nethermind.Logging; using Nethermind.Specs; using Nethermind.Specs.Forks; -using Nethermind.Specs.Test.ChainSpecStyle; using Nethermind.State; using NSubstitute; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.Blockchain.Test/Services/HealthHintServiceTests.cs b/src/Nethermind/Nethermind.Blockchain.Test/Services/HealthHintServiceTests.cs index 30427856af5..aee9e3a4df5 100644 --- a/src/Nethermind/Nethermind.Blockchain.Test/Services/HealthHintServiceTests.cs +++ b/src/Nethermind/Nethermind.Blockchain.Test/Services/HealthHintServiceTests.cs @@ -5,7 +5,6 @@ using Nethermind.Blockchain.Services; using Nethermind.Core; using Nethermind.Specs.ChainSpecStyle; -using Nethermind.Specs.Test.ChainSpecStyle; using NUnit.Framework; namespace Nethermind.Blockchain.Test.Services; diff --git a/src/Nethermind/Nethermind.Blockchain.Test/Validators/TxValidatorTests.cs b/src/Nethermind/Nethermind.Blockchain.Test/Validators/TxValidatorTests.cs index 96972893b1b..889950e29cd 100644 --- a/src/Nethermind/Nethermind.Blockchain.Test/Validators/TxValidatorTests.cs +++ b/src/Nethermind/Nethermind.Blockchain.Test/Validators/TxValidatorTests.cs @@ -6,7 +6,6 @@ using System.Linq; using System.Numerics; using FluentAssertions; -using Microsoft.AspNetCore.Mvc.Routing; using Nethermind.Consensus.Messages; using Nethermind.Consensus.Validators; using Nethermind.Core; diff --git a/src/Nethermind/Nethermind.Blockchain.Test/Visitors/StartupTreeFixerTests.cs b/src/Nethermind/Nethermind.Blockchain.Test/Visitors/StartupTreeFixerTests.cs index ff88673cf63..366cbec9617 100644 --- a/src/Nethermind/Nethermind.Blockchain.Test/Visitors/StartupTreeFixerTests.cs +++ b/src/Nethermind/Nethermind.Blockchain.Test/Visitors/StartupTreeFixerTests.cs @@ -12,7 +12,6 @@ using Nethermind.Db; using Nethermind.Logging; using Nethermind.JsonRpc.Test.Modules; -using Nethermind.Specs.Test.ChainSpecStyle; using Nethermind.State; using NSubstitute; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.Blockchain/BeaconBlockRoot/IBeaconBlockRootHandler.cs b/src/Nethermind/Nethermind.Blockchain/BeaconBlockRoot/IBeaconBlockRootHandler.cs index 6f86cae694a..0bea001adb8 100644 --- a/src/Nethermind/Nethermind.Blockchain/BeaconBlockRoot/IBeaconBlockRootHandler.cs +++ b/src/Nethermind/Nethermind.Blockchain/BeaconBlockRoot/IBeaconBlockRootHandler.cs @@ -5,7 +5,6 @@ using Nethermind.Core.Eip2930; using Nethermind.Core.Specs; using Nethermind.Evm.Tracing; -using Nethermind.State; namespace Nethermind.Blockchain.BeaconBlockRoot; public interface IBeaconBlockRootHandler diff --git a/src/Nethermind/Nethermind.Blockchain/Blocks/IBlockStore.cs b/src/Nethermind/Nethermind.Blockchain/Blocks/IBlockStore.cs index d34dde4ace8..d72ce5f9224 100644 --- a/src/Nethermind/Nethermind.Blockchain/Blocks/IBlockStore.cs +++ b/src/Nethermind/Nethermind.Blockchain/Blocks/IBlockStore.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2023 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; using Nethermind.Core; using Nethermind.Core.Crypto; using Nethermind.Serialization.Rlp; diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/AuRaSealValidator.cs b/src/Nethermind/Nethermind.Consensus.AuRa/AuRaSealValidator.cs index 46c40702741..8a174cf0774 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/AuRaSealValidator.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/AuRaSealValidator.cs @@ -11,7 +11,6 @@ using Nethermind.Crypto; using Nethermind.Logging; using Nethermind.Serialization.Rlp; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.AuRa { diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/AuRaValidatorFactory.cs b/src/Nethermind/Nethermind.Consensus.AuRa/AuRaValidatorFactory.cs index 00db5435a80..927b327f6ed 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/AuRaValidatorFactory.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/AuRaValidatorFactory.cs @@ -10,7 +10,6 @@ using Nethermind.Core; using Nethermind.Core.Specs; using Nethermind.Logging; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.State; using Nethermind.Evm.TransactionProcessing; using Nethermind.JsonRpc.Modules.Eth.GasPrice; diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/IAuRaValidatorFactory.cs b/src/Nethermind/Nethermind.Consensus.AuRa/IAuRaValidatorFactory.cs index 4dc706f62ea..1859963e525 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/IAuRaValidatorFactory.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/IAuRaValidatorFactory.cs @@ -3,7 +3,6 @@ using Nethermind.Consensus.AuRa.Validators; using Nethermind.Core; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.AuRa { diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/InitializeBlockchainAuRa.cs b/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/InitializeBlockchainAuRa.cs index cdf3c499336..c4a85476e3a 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/InitializeBlockchainAuRa.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/InitializeBlockchainAuRa.cs @@ -27,7 +27,6 @@ using Nethermind.Evm; using Nethermind.Init.Steps; using Nethermind.Logging; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.State; using Nethermind.TxPool; using Nethermind.TxPool.Comparison; diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/StartBlockProducerAuRa.cs b/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/StartBlockProducerAuRa.cs index 39faddc8c85..6ab1105f81d 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/StartBlockProducerAuRa.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/StartBlockProducerAuRa.cs @@ -25,7 +25,6 @@ using Nethermind.Evm.TransactionProcessing; using Nethermind.Init.Steps; using Nethermind.Logging; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.TxPool; namespace Nethermind.Consensus.AuRa.InitializationSteps; diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/Rewards/AuRaRewardCalculator.cs b/src/Nethermind/Nethermind.Consensus.AuRa/Rewards/AuRaRewardCalculator.cs index 4241943283f..ac6a4ae7da7 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/Rewards/AuRaRewardCalculator.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/Rewards/AuRaRewardCalculator.cs @@ -10,7 +10,6 @@ using Nethermind.Consensus.Rewards; using Nethermind.Core; using Nethermind.Evm.TransactionProcessing; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.AuRa.Rewards { diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/Validators/ListBasedValidator.cs b/src/Nethermind/Nethermind.Consensus.AuRa/Validators/ListBasedValidator.cs index a0bcd876ee7..50917a775c6 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/Validators/ListBasedValidator.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/Validators/ListBasedValidator.cs @@ -3,7 +3,6 @@ using System; using Nethermind.Logging; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.AuRa.Validators { diff --git a/src/Nethermind/Nethermind.Consensus.AuRa/Validators/MultiValidator.cs b/src/Nethermind/Nethermind.Consensus.AuRa/Validators/MultiValidator.cs index fc7f041d37c..77e6f229b9f 100644 --- a/src/Nethermind/Nethermind.Consensus.AuRa/Validators/MultiValidator.cs +++ b/src/Nethermind/Nethermind.Consensus.AuRa/Validators/MultiValidator.cs @@ -11,7 +11,6 @@ using Nethermind.Consensus.Transactions; using Nethermind.Core; using Nethermind.Logging; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.AuRa.Validators { diff --git a/src/Nethermind/Nethermind.Consensus.Clique/CliqueChainSpecEngineParameters.cs b/src/Nethermind/Nethermind.Consensus.Clique/CliqueChainSpecEngineParameters.cs index d9028ec2560..95849a4f66f 100644 --- a/src/Nethermind/Nethermind.Consensus.Clique/CliqueChainSpecEngineParameters.cs +++ b/src/Nethermind/Nethermind.Consensus.Clique/CliqueChainSpecEngineParameters.cs @@ -1,9 +1,7 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; using Nethermind.Int256; -using Nethermind.Specs; using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.Clique; diff --git a/src/Nethermind/Nethermind.Consensus.Clique/CliqueHealthHintService.cs b/src/Nethermind/Nethermind.Consensus.Clique/CliqueHealthHintService.cs index fbf4765a05d..0bd2c679f66 100644 --- a/src/Nethermind/Nethermind.Consensus.Clique/CliqueHealthHintService.cs +++ b/src/Nethermind/Nethermind.Consensus.Clique/CliqueHealthHintService.cs @@ -3,7 +3,6 @@ using System; using Nethermind.Blockchain.Services; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.Clique { diff --git a/src/Nethermind/Nethermind.Consensus.Ethash/NethDevChainSpecEngineParameters.cs b/src/Nethermind/Nethermind.Consensus.Ethash/NethDevChainSpecEngineParameters.cs index 32d26832fd9..208144d75ce 100644 --- a/src/Nethermind/Nethermind.Consensus.Ethash/NethDevChainSpecEngineParameters.cs +++ b/src/Nethermind/Nethermind.Consensus.Ethash/NethDevChainSpecEngineParameters.cs @@ -1,8 +1,6 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; -using Nethermind.Specs; using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Consensus.Ethash; diff --git a/src/Nethermind/Nethermind.Consensus/ExecutionRequests/IExecutionRequestProcessor.cs b/src/Nethermind/Nethermind.Consensus/ExecutionRequests/IExecutionRequestProcessor.cs index f0461e3a8b1..c6bab3329c0 100644 --- a/src/Nethermind/Nethermind.Consensus/ExecutionRequests/IExecutionRequestProcessor.cs +++ b/src/Nethermind/Nethermind.Consensus/ExecutionRequests/IExecutionRequestProcessor.cs @@ -1,9 +1,7 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; using Nethermind.Core; -using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Specs; using Nethermind.State; diff --git a/src/Nethermind/Nethermind.Consensus/Messages/BlockErrorMessages.cs b/src/Nethermind/Nethermind.Consensus/Messages/BlockErrorMessages.cs index 2c3f10a5a17..1e6e70b0eba 100644 --- a/src/Nethermind/Nethermind.Consensus/Messages/BlockErrorMessages.cs +++ b/src/Nethermind/Nethermind.Consensus/Messages/BlockErrorMessages.cs @@ -3,7 +3,6 @@ using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Serialization.Json; namespace Nethermind.Consensus.Messages; public static class BlockErrorMessages diff --git a/src/Nethermind/Nethermind.Consensus/Processing/BlockProcessor.cs b/src/Nethermind/Nethermind.Consensus/Processing/BlockProcessor.cs index ce1bfd2f8da..b3946f9ce9b 100644 --- a/src/Nethermind/Nethermind.Consensus/Processing/BlockProcessor.cs +++ b/src/Nethermind/Nethermind.Consensus/Processing/BlockProcessor.cs @@ -19,7 +19,6 @@ using Nethermind.Core; using Nethermind.Core.Crypto; using Nethermind.Core.Eip2930; -using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Specs; using Nethermind.Crypto; using Nethermind.Evm; diff --git a/src/Nethermind/Nethermind.Core.Test/Blockchain/TestBlockchain.cs b/src/Nethermind/Nethermind.Core.Test/Blockchain/TestBlockchain.cs index 379a163ad88..d8411dcd46d 100644 --- a/src/Nethermind/Nethermind.Core.Test/Blockchain/TestBlockchain.cs +++ b/src/Nethermind/Nethermind.Core.Test/Blockchain/TestBlockchain.cs @@ -22,7 +22,6 @@ using Nethermind.Consensus.Transactions; using Nethermind.Consensus.Validators; using Nethermind.Core.Crypto; -using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Extensions; using Nethermind.Core.Specs; using Nethermind.Core.Test.Builders; @@ -39,7 +38,6 @@ using Nethermind.Specs.Test; using Nethermind.State; using Nethermind.State.Repositories; -using Nethermind.Synchronization; using Nethermind.Trie; using Nethermind.Trie.Pruning; using Nethermind.TxPool; diff --git a/src/Nethermind/Nethermind.Core.Test/Builders/BlockBuilder.cs b/src/Nethermind/Nethermind.Core.Test/Builders/BlockBuilder.cs index e2de33c5a8c..cf59e33c173 100644 --- a/src/Nethermind/Nethermind.Core.Test/Builders/BlockBuilder.cs +++ b/src/Nethermind/Nethermind.Core.Test/Builders/BlockBuilder.cs @@ -3,8 +3,6 @@ using System; using System.Linq; -using DotNetty.Common.Utilities; -using Nethermind.Core.Collections; using Nethermind.Core.Crypto; using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Specs; diff --git a/src/Nethermind/Nethermind.Core.Test/Builders/TestItem.cs b/src/Nethermind/Nethermind.Core.Test/Builders/TestItem.cs index e922f4971d1..c657b8b46f0 100644 --- a/src/Nethermind/Nethermind.Core.Test/Builders/TestItem.cs +++ b/src/Nethermind/Nethermind.Core.Test/Builders/TestItem.cs @@ -2,12 +2,10 @@ // SPDX-License-Identifier: LGPL-3.0-only using System; -using System.Linq; using System.Net; using DotNetty.Common.Utilities; using Nethermind.Core.Crypto; using Nethermind.Crypto; -using Nethermind.Evm.Precompiles.Bls; using Nethermind.Int256; using Nethermind.Serialization.Rlp; diff --git a/src/Nethermind/Nethermind.Core.Test/Crypto/EthereumEcdsaTests.cs b/src/Nethermind/Nethermind.Core.Test/Crypto/EthereumEcdsaTests.cs index 64d98d18dea..c63e04c8a9f 100644 --- a/src/Nethermind/Nethermind.Core.Test/Crypto/EthereumEcdsaTests.cs +++ b/src/Nethermind/Nethermind.Core.Test/Crypto/EthereumEcdsaTests.cs @@ -1,15 +1,9 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Collections.Generic; -using System.Net; -using Nethermind.Core.Crypto; using Nethermind.Core.Test.Builders; using Nethermind.Crypto; -using Nethermind.Int256; -using Nethermind.Logging; -using Nethermind.Serialization.Rlp; using NUnit.Framework; namespace Nethermind.Core.Test.Crypto diff --git a/src/Nethermind/Nethermind.Core.Test/Encoding/AuthorizationTupleDecoderTests.cs b/src/Nethermind/Nethermind.Core.Test/Encoding/AuthorizationTupleDecoderTests.cs index b6181919823..5452208032c 100644 --- a/src/Nethermind/Nethermind.Core.Test/Encoding/AuthorizationTupleDecoderTests.cs +++ b/src/Nethermind/Nethermind.Core.Test/Encoding/AuthorizationTupleDecoderTests.cs @@ -3,16 +3,10 @@ using FluentAssertions; using Nethermind.Core.Crypto; -using Nethermind.Core.Test.Builders; -using Nethermind.Int256; using Nethermind.Serialization.Rlp; -using NSubstitute.ExceptionExtensions; using NUnit.Framework; -using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace Nethermind.Core.Test.Encoding; diff --git a/src/Nethermind/Nethermind.Core/AccountStateProviderExtensions.cs b/src/Nethermind/Nethermind.Core/AccountStateProviderExtensions.cs index b07d3e9ebdd..db3ff6ae698 100644 --- a/src/Nethermind/Nethermind.Core/AccountStateProviderExtensions.cs +++ b/src/Nethermind/Nethermind.Core/AccountStateProviderExtensions.cs @@ -1,9 +1,6 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using Nethermind.Core.Specs; -using System; - namespace Nethermind.Core { public static class AccountStateProviderExtensions diff --git a/src/Nethermind/Nethermind.Core/AuthorizationTuple.cs b/src/Nethermind/Nethermind.Core/AuthorizationTuple.cs index 55c9a2c9bbf..c49e374a2c4 100644 --- a/src/Nethermind/Nethermind.Core/AuthorizationTuple.cs +++ b/src/Nethermind/Nethermind.Core/AuthorizationTuple.cs @@ -3,7 +3,6 @@ using Nethermind.Core.Crypto; using Nethermind.Int256; -using System; namespace Nethermind.Core; public class AuthorizationTuple( diff --git a/src/Nethermind/Nethermind.Core/Extensions/UInt256Extensions.cs b/src/Nethermind/Nethermind.Core/Extensions/UInt256Extensions.cs index b0f06b73cd1..cdeabd79770 100644 --- a/src/Nethermind/Nethermind.Core/Extensions/UInt256Extensions.cs +++ b/src/Nethermind/Nethermind.Core/Extensions/UInt256Extensions.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using Nethermind.Int256; namespace Nethermind.Core.Extensions; diff --git a/src/Nethermind/Nethermind.Core/Transaction.cs b/src/Nethermind/Nethermind.Core/Transaction.cs index 6783c28d18f..1f8f9d90095 100644 --- a/src/Nethermind/Nethermind.Core/Transaction.cs +++ b/src/Nethermind/Nethermind.Core/Transaction.cs @@ -5,7 +5,6 @@ using System.Buffers; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Text.Json.Serialization; diff --git a/src/Nethermind/Nethermind.Crypto/EthereumEcdsa.cs b/src/Nethermind/Nethermind.Crypto/EthereumEcdsa.cs index deecd2c9d11..a4d82775115 100644 --- a/src/Nethermind/Nethermind.Crypto/EthereumEcdsa.cs +++ b/src/Nethermind/Nethermind.Crypto/EthereumEcdsa.cs @@ -3,13 +3,9 @@ using System; using System.Globalization; -using System.IO; using System.Numerics; -using System.Runtime.CompilerServices; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Int256; -using Nethermind.Logging; using Nethermind.Serialization.Rlp; namespace Nethermind.Crypto diff --git a/src/Nethermind/Nethermind.Crypto/IEthereumEcdsa.cs b/src/Nethermind/Nethermind.Crypto/IEthereumEcdsa.cs index 67f17f74d5b..c79915adfc0 100644 --- a/src/Nethermind/Nethermind.Crypto/IEthereumEcdsa.cs +++ b/src/Nethermind/Nethermind.Crypto/IEthereumEcdsa.cs @@ -4,7 +4,6 @@ using System; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Int256; namespace Nethermind.Crypto { diff --git a/src/Nethermind/Nethermind.Crypto/NullEthereumEcdsa.cs b/src/Nethermind/Nethermind.Crypto/NullEthereumEcdsa.cs index 78ff585916f..0db8fd6c50f 100644 --- a/src/Nethermind/Nethermind.Crypto/NullEthereumEcdsa.cs +++ b/src/Nethermind/Nethermind.Crypto/NullEthereumEcdsa.cs @@ -4,7 +4,6 @@ using System; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Int256; namespace Nethermind.Crypto { diff --git a/src/Nethermind/Nethermind.Db/IDbProvider.cs b/src/Nethermind/Nethermind.Db/IDbProvider.cs index d3676082f49..7786271bc74 100644 --- a/src/Nethermind/Nethermind.Db/IDbProvider.cs +++ b/src/Nethermind/Nethermind.Db/IDbProvider.cs @@ -3,9 +3,6 @@ using System; using System.Collections.Generic; -using Autofac; -using Microsoft.Extensions.DependencyInjection; -using Nethermind.Core; namespace Nethermind.Db { diff --git a/src/Nethermind/Nethermind.Evm.Test/CodeInfoRepositoryTests.cs b/src/Nethermind/Nethermind.Evm.Test/CodeInfoRepositoryTests.cs index f83b9b9846d..53d6dcc43d2 100644 --- a/src/Nethermind/Nethermind.Evm.Test/CodeInfoRepositoryTests.cs +++ b/src/Nethermind/Nethermind.Evm.Test/CodeInfoRepositoryTests.cs @@ -4,7 +4,6 @@ using Nethermind.Core.Crypto; using Nethermind.Core; using Nethermind.Crypto; -using Nethermind.Int256; using Nethermind.Logging; using Nethermind.Serialization.Rlp; using NSubstitute; diff --git a/src/Nethermind/Nethermind.Evm.Test/TransactionProcessorEip7702Tests.cs b/src/Nethermind/Nethermind.Evm.Test/TransactionProcessorEip7702Tests.cs index d627b8190cd..ba7a9425996 100644 --- a/src/Nethermind/Nethermind.Evm.Test/TransactionProcessorEip7702Tests.cs +++ b/src/Nethermind/Nethermind.Evm.Test/TransactionProcessorEip7702Tests.cs @@ -20,7 +20,6 @@ using System; using System.Linq; using Nethermind.Int256; -using Nethermind.Consensus; namespace Nethermind.Evm.Test; diff --git a/src/Nethermind/Nethermind.Evm/CodeInfoRepository.cs b/src/Nethermind/Nethermind.Evm/CodeInfoRepository.cs index 939352a20ac..17bc789bc29 100644 --- a/src/Nethermind/Nethermind.Evm/CodeInfoRepository.cs +++ b/src/Nethermind/Nethermind.Evm/CodeInfoRepository.cs @@ -16,7 +16,6 @@ using Nethermind.Evm.Precompiles.Bls; using Nethermind.Evm.Precompiles.Snarks; using Nethermind.State; -using Nethermind.Crypto; namespace Nethermind.Evm; diff --git a/src/Nethermind/Nethermind.Evm/EvmPooledMemory.cs b/src/Nethermind/Nethermind.Evm/EvmPooledMemory.cs index 01e12e32c96..e1783c89800 100644 --- a/src/Nethermind/Nethermind.Evm/EvmPooledMemory.cs +++ b/src/Nethermind/Nethermind.Evm/EvmPooledMemory.cs @@ -5,7 +5,6 @@ using System.Buffers; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; -using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Intrinsics; diff --git a/src/Nethermind/Nethermind.Evm/EvmState.cs b/src/Nethermind/Nethermind.Evm/EvmState.cs index 5df715ab60e..c1ae13ee91c 100644 --- a/src/Nethermind/Nethermind.Evm/EvmState.cs +++ b/src/Nethermind/Nethermind.Evm/EvmState.cs @@ -6,7 +6,6 @@ using System.Diagnostics; using System.Threading; using Nethermind.Core; -using Nethermind.Core.Specs; using Nethermind.State; namespace Nethermind.Evm diff --git a/src/Nethermind/Nethermind.Evm/ICodeInfoRepository.cs b/src/Nethermind/Nethermind.Evm/ICodeInfoRepository.cs index b2f0a4a176d..3f54a9c9c5f 100644 --- a/src/Nethermind/Nethermind.Evm/ICodeInfoRepository.cs +++ b/src/Nethermind/Nethermind.Evm/ICodeInfoRepository.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using Nethermind.Core; using Nethermind.Core.Crypto; diff --git a/src/Nethermind/Nethermind.Evm/StackAccessTracker.cs b/src/Nethermind/Nethermind.Evm/StackAccessTracker.cs index 8e94313fb8b..a000954a4d3 100644 --- a/src/Nethermind/Nethermind.Evm/StackAccessTracker.cs +++ b/src/Nethermind/Nethermind.Evm/StackAccessTracker.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Collections.Generic; using Nethermind.Core; using Nethermind.Core.Collections; diff --git a/src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs b/src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs index f914553a832..cb13a2b18d7 100644 --- a/src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs +++ b/src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs @@ -9,7 +9,6 @@ using System.Linq; using System.Runtime.CompilerServices; using Nethermind.Core; -using Nethermind.Core.Collections; using Nethermind.Core.Crypto; using Nethermind.Core.Specs; using Nethermind.Crypto; diff --git a/src/Nethermind/Nethermind.Facade/BlockchainBridgeContract.cs b/src/Nethermind/Nethermind.Facade/BlockchainBridgeContract.cs index abe697c2540..9e87f5e5ec2 100644 --- a/src/Nethermind/Nethermind.Facade/BlockchainBridgeContract.cs +++ b/src/Nethermind/Nethermind.Facade/BlockchainBridgeContract.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System; -using System.Threading; using Nethermind.Abi; using Nethermind.Blockchain.Contracts; using Nethermind.Core; diff --git a/src/Nethermind/Nethermind.Init/Steps/InitializeBlockTree.cs b/src/Nethermind/Nethermind.Init/Steps/InitializeBlockTree.cs index dbd7011fd17..57953c0a226 100644 --- a/src/Nethermind/Nethermind.Init/Steps/InitializeBlockTree.cs +++ b/src/Nethermind/Nethermind.Init/Steps/InitializeBlockTree.cs @@ -7,7 +7,6 @@ using Nethermind.Api; using Nethermind.Blockchain; using Nethermind.Blockchain.Blocks; -using Nethermind.Blockchain.Find; using Nethermind.Blockchain.Headers; using Nethermind.Blockchain.Receipts; using Nethermind.Blockchain.Synchronization; diff --git a/src/Nethermind/Nethermind.Init/Steps/InitializeNetwork.cs b/src/Nethermind/Nethermind.Init/Steps/InitializeNetwork.cs index db2854c0003..76cbd9a2df1 100644 --- a/src/Nethermind/Nethermind.Init/Steps/InitializeNetwork.cs +++ b/src/Nethermind/Nethermind.Init/Steps/InitializeNetwork.cs @@ -8,7 +8,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac; -using Autofac.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using Nethermind.Api; using Nethermind.Api.Extensions; @@ -34,7 +33,6 @@ using Nethermind.Network.StaticNodes; using Nethermind.Stats.Model; using Nethermind.Synchronization; -using Nethermind.Synchronization.Blocks; using Nethermind.Synchronization.ParallelSync; using Nethermind.Synchronization.Peers; using Nethermind.Synchronization.SnapSync; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EstimateGas.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EstimateGas.cs index 181e0fd06fc..26077b2de8b 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EstimateGas.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EstimateGas.cs @@ -16,7 +16,6 @@ using Nethermind.Specs; using Nethermind.Specs.Forks; using Nethermind.Specs.Test; -using Nethermind.Specs.Test.ChainSpecStyle; using Nethermind.State; using Newtonsoft.Json.Linq; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EthCall.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EthCall.cs index afbce2b63e2..caeb411c8d5 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EthCall.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.EthCall.cs @@ -15,7 +15,6 @@ using Nethermind.Specs; using Nethermind.Specs.Forks; using Nethermind.Specs.Test; -using Nethermind.Specs.Test.ChainSpecStyle; using Nethermind.State; using Newtonsoft.Json.Linq; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.GasPrice.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.GasPrice.cs index 26415e9be23..62e7e81d9be 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.GasPrice.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.GasPrice.cs @@ -12,7 +12,6 @@ using Nethermind.Int256; using Nethermind.JsonRpc.Modules.Eth.GasPrice; using Nethermind.Logging; -using Nethermind.Specs.Test.ChainSpecStyle; using NUnit.Framework; using static Nethermind.JsonRpc.Test.Modules.GasPriceOracleTests; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.cs index dd87b6515d8..cba118364b4 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthRpcModuleTests.cs @@ -32,7 +32,6 @@ using Nethermind.Specs; using Nethermind.Specs.Forks; using Nethermind.Specs.Test; -using Nethermind.Specs.Test.ChainSpecStyle; using Nethermind.TxPool; using Newtonsoft.Json.Linq; using NSubstitute; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthSimulateTestsPrecompilesWithRedirection.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthSimulateTestsPrecompilesWithRedirection.cs index c79fb4f5f9e..d41e9f31085 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthSimulateTestsPrecompilesWithRedirection.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/EthSimulateTestsPrecompilesWithRedirection.cs @@ -14,7 +14,6 @@ using Nethermind.Evm; using Nethermind.Evm.Precompiles; using Nethermind.Facade.Eth.RpcTransaction; -using Nethermind.Facade.Proxy.Models; using Nethermind.Facade.Proxy.Models.Simulate; using Nethermind.JsonRpc.Modules.Eth; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/Simulate/EthSimulateTestsSimplePrecompiles.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/Simulate/EthSimulateTestsSimplePrecompiles.cs index b362a5439fd..020049685cd 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/Simulate/EthSimulateTestsSimplePrecompiles.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/Eth/Simulate/EthSimulateTestsSimplePrecompiles.cs @@ -11,7 +11,6 @@ using Nethermind.Crypto; using Nethermind.Evm; using Nethermind.Evm.Precompiles; -using Nethermind.Facade.Proxy.Models; using Nethermind.Facade.Proxy.Models.Simulate; using Nethermind.Facade.Simulate; using NUnit.Framework; diff --git a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/TraceRpcModuleTests.cs b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/TraceRpcModuleTests.cs index 2938cc32807..20c674df14a 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Test/Modules/TraceRpcModuleTests.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Test/Modules/TraceRpcModuleTests.cs @@ -29,8 +29,6 @@ using Nethermind.JsonRpc.Data; using Nethermind.Serialization.Rlp; using Newtonsoft.Json.Linq; -using Nethermind.JsonRpc.Modules; -using Nethermind.Specs.Test.ChainSpecStyle; namespace Nethermind.JsonRpc.Test.Modules; diff --git a/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/PeerInfo.cs b/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/PeerInfo.cs index 0deae1a7a67..59d1bb8d962 100644 --- a/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/PeerInfo.cs +++ b/src/Nethermind/Nethermind.JsonRpc/Modules/Admin/PeerInfo.cs @@ -6,7 +6,6 @@ using System.Net; using Nethermind.Network; using Nethermind.Stats.Model; -using Nethermind.Core.Crypto; namespace Nethermind.JsonRpc.Modules.Admin { diff --git a/src/Nethermind/Nethermind.JsonRpc/Modules/Eth/EthRpcModule.cs b/src/Nethermind/Nethermind.JsonRpc/Modules/Eth/EthRpcModule.cs index 70f06eeb6b0..f0d9ca94f8c 100644 --- a/src/Nethermind/Nethermind.JsonRpc/Modules/Eth/EthRpcModule.cs +++ b/src/Nethermind/Nethermind.JsonRpc/Modules/Eth/EthRpcModule.cs @@ -22,7 +22,6 @@ using Nethermind.Facade.Eth; using Nethermind.Facade.Eth.RpcTransaction; using Nethermind.Facade.Filters; -using Nethermind.Facade.Proxy.Models; using Nethermind.Facade.Proxy.Models.Simulate; using Nethermind.Int256; using Nethermind.JsonRpc.Data; diff --git a/src/Nethermind/Nethermind.JsonRpc/WebSockets/JsonRpcSocketsClient.cs b/src/Nethermind/Nethermind.JsonRpc/WebSockets/JsonRpcSocketsClient.cs index ddf29f87e36..e5e4a117040 100644 --- a/src/Nethermind/Nethermind.JsonRpc/WebSockets/JsonRpcSocketsClient.cs +++ b/src/Nethermind/Nethermind.JsonRpc/WebSockets/JsonRpcSocketsClient.cs @@ -8,8 +8,6 @@ using System.IO.Pipelines; using System.Threading; using System.Threading.Tasks; - -using Nethermind.Core.Extensions; using Nethermind.JsonRpc.Modules; using Nethermind.Serialization.Json; using Nethermind.Sockets; diff --git a/src/Nethermind/Nethermind.Merge.AuRa/AuRaMergeBlockProducerEnvFactory.cs b/src/Nethermind/Nethermind.Merge.AuRa/AuRaMergeBlockProducerEnvFactory.cs index c8529a338d2..7a01e984cfc 100644 --- a/src/Nethermind/Nethermind.Merge.AuRa/AuRaMergeBlockProducerEnvFactory.cs +++ b/src/Nethermind/Nethermind.Merge.AuRa/AuRaMergeBlockProducerEnvFactory.cs @@ -17,7 +17,6 @@ using Nethermind.Evm.TransactionProcessing; using Nethermind.Logging; using Nethermind.Merge.AuRa.Withdrawals; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.State; using Nethermind.TxPool; diff --git a/src/Nethermind/Nethermind.Merge.AuRa/InitializationSteps/InitializeBlockchainAuRaMerge.cs b/src/Nethermind/Nethermind.Merge.AuRa/InitializationSteps/InitializeBlockchainAuRaMerge.cs index 28a7d6e3d62..1bcb350888c 100644 --- a/src/Nethermind/Nethermind.Merge.AuRa/InitializationSteps/InitializeBlockchainAuRaMerge.cs +++ b/src/Nethermind/Nethermind.Merge.AuRa/InitializationSteps/InitializeBlockchainAuRaMerge.cs @@ -12,7 +12,6 @@ using Nethermind.Evm.TransactionProcessing; using Nethermind.Init.Steps; using Nethermind.Merge.AuRa.Withdrawals; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.State; namespace Nethermind.Merge.AuRa.InitializationSteps diff --git a/src/Nethermind/Nethermind.Merge.AuRa/Withdrawals/WithdrawalContractFactory.cs b/src/Nethermind/Nethermind.Merge.AuRa/Withdrawals/WithdrawalContractFactory.cs index 1f0711feb9b..8bcff3cfad8 100644 --- a/src/Nethermind/Nethermind.Merge.AuRa/Withdrawals/WithdrawalContractFactory.cs +++ b/src/Nethermind/Nethermind.Merge.AuRa/Withdrawals/WithdrawalContractFactory.cs @@ -7,7 +7,6 @@ using Nethermind.Core; using Nethermind.Evm.TransactionProcessing; using Nethermind.Merge.AuRa.Contracts; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Merge.AuRa.Withdrawals; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.DelayBlockImprovementContextFactory.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.DelayBlockImprovementContextFactory.cs index 81e20cc6f87..bee3edb1282 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.DelayBlockImprovementContextFactory.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.DelayBlockImprovementContextFactory.cs @@ -10,7 +10,6 @@ using Nethermind.Core.Extensions; using Nethermind.Evm.Tracing; using Nethermind.Int256; -using Nethermind.Merge.Plugin.BlockProduction; namespace Nethermind.Merge.Plugin.Test; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.MockBlockImprovementContextFactory.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.MockBlockImprovementContextFactory.cs index f43353341f4..3d6eb165f0f 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.MockBlockImprovementContextFactory.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.MockBlockImprovementContextFactory.cs @@ -6,7 +6,6 @@ using Nethermind.Consensus.Producers; using Nethermind.Core; using Nethermind.Int256; -using Nethermind.Merge.Plugin.BlockProduction; namespace Nethermind.Merge.Plugin.Test; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.Setup.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.Setup.cs index 7953d25e676..3e1dc838c83 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.Setup.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.Setup.cs @@ -26,7 +26,6 @@ using Nethermind.Crypto; using Nethermind.Db; using Nethermind.Evm.Tracing; -using Nethermind.Evm.TransactionProcessing; using Nethermind.Facade.Eth; using Nethermind.HealthChecks; using Nethermind.Int256; @@ -35,7 +34,6 @@ using Nethermind.Merge.Plugin.GC; using Nethermind.Merge.Plugin.Handlers; using Nethermind.Merge.Plugin.Synchronization; -using Nethermind.Merge.Plugin.Test.Synchronization; using Nethermind.Specs; using Nethermind.Specs.ChainSpecStyle; using Nethermind.Specs.Forks; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.StoringBlockImprovementContextFactory.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.StoringBlockImprovementContextFactory.cs index 1e7e3e3f00c..fce5c4b3f55 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.StoringBlockImprovementContextFactory.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.StoringBlockImprovementContextFactory.cs @@ -6,7 +6,6 @@ using System.Threading.Tasks; using Nethermind.Consensus.Producers; using Nethermind.Core; -using Nethermind.Merge.Plugin.BlockProduction; namespace Nethermind.Merge.Plugin.Test; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.V4.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.V4.cs index 72a4a39c582..3aec03119fe 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.V4.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.V4.cs @@ -10,7 +10,6 @@ using Nethermind.Consensus.Producers; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Extensions; using Nethermind.Core.Test.Builders; using Nethermind.Int256; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/ExecutionRequestsProcessorMock.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/ExecutionRequestsProcessorMock.cs index 07bab9aed6a..10b44839ef5 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/ExecutionRequestsProcessorMock.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/ExecutionRequestsProcessorMock.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System.Linq; -using DotNetty.Common.Utilities; using Nethermind.Consensus.ExecutionRequests; using Nethermind.Core; using Nethermind.Core.Collections; diff --git a/src/Nethermind/Nethermind.Merge.Plugin.Test/MergePluginTests.cs b/src/Nethermind/Nethermind.Merge.Plugin.Test/MergePluginTests.cs index 9810fb3c89f..3db2a381ec1 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin.Test/MergePluginTests.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin.Test/MergePluginTests.cs @@ -15,7 +15,6 @@ using Nethermind.JsonRpc; using Nethermind.JsonRpc.Modules; using Nethermind.Merge.Plugin.BlockProduction; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Specs.Test.ChainSpecStyle; using NUnit.Framework; using NSubstitute; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayloadV3.cs b/src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayloadV3.cs index 62d3f85e99d..3b42b48eb9a 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayloadV3.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayloadV3.cs @@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis; using System.Text.Json.Serialization; using Nethermind.Core; -using Nethermind.Core.Crypto; using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Specs; using Nethermind.Int256; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Data/GetPayloadV4Result.cs b/src/Nethermind/Nethermind.Merge.Plugin/Data/GetPayloadV4Result.cs index e1e1fcaa934..4c7f923b124 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Data/GetPayloadV4Result.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Data/GetPayloadV4Result.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using Nethermind.Core; -using Nethermind.Core.ExecutionRequest; using Nethermind.Int256; namespace Nethermind.Merge.Plugin.Data; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Paris.cs b/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Paris.cs index 89ed9992adf..8ac6060a548 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Paris.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Paris.cs @@ -7,8 +7,6 @@ using System.Threading.Tasks; using Nethermind.Consensus; using Nethermind.Consensus.Producers; -using Nethermind.Core.Crypto; -using Nethermind.Core.ExecutionRequest; using Nethermind.Core.Specs; using Nethermind.JsonRpc; using Nethermind.Merge.Plugin.Data; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Prague.cs b/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Prague.cs index d554751d993..73921106c50 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Prague.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Prague.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using Nethermind.Consensus; using Nethermind.Core.Crypto; -using Nethermind.Core.ExecutionRequest; using Nethermind.JsonRpc; using Nethermind.Merge.Plugin.Data; using Nethermind.Merge.Plugin.Handlers; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/ForkchoiceUpdatedHandler.cs b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/ForkchoiceUpdatedHandler.cs index b574f1803f3..0f6c3c14fea 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/ForkchoiceUpdatedHandler.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/ForkchoiceUpdatedHandler.cs @@ -2,10 +2,8 @@ // SPDX-License-Identifier: LGPL-3.0-only using System; -using System.Buffers; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Text; using System.Threading; using System.Threading.Tasks; using Nethermind.Blockchain; @@ -15,7 +13,6 @@ using Nethermind.Consensus.Producers; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Core.Extensions; using Nethermind.Core.Specs; using Nethermind.Core.Threading; using Nethermind.Crypto; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/GetPayloadBodiesByHashV1Handler.cs b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/GetPayloadBodiesByHashV1Handler.cs index 6171a306cb9..b61ff36fe75 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/GetPayloadBodiesByHashV1Handler.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/GetPayloadBodiesByHashV1Handler.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System.Collections.Generic; -using System.Threading.Tasks; using Nethermind.Blockchain; using Nethermind.Core; using Nethermind.Core.Crypto; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs index 64293079503..49651d8ae49 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Handlers/NewPayloadHandler.cs @@ -12,7 +12,6 @@ using Nethermind.Core; using Nethermind.Core.Caching; using Nethermind.Core.Crypto; -using Nethermind.Core.Extensions; using Nethermind.Crypto; using Nethermind.Int256; using Nethermind.JsonRpc; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/IEngineRpcModule.Prague.cs b/src/Nethermind/Nethermind.Merge.Plugin/IEngineRpcModule.Prague.cs index d5b38eac8fe..49158bc25df 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/IEngineRpcModule.Prague.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/IEngineRpcModule.Prague.cs @@ -1,11 +1,8 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; using System.Threading.Tasks; -using Nethermind.Consensus.Producers; using Nethermind.Core.Crypto; -using Nethermind.Core.ExecutionRequest; using Nethermind.JsonRpc; using Nethermind.JsonRpc.Modules; using Nethermind.Merge.Plugin.Data; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/MergePlugin.cs b/src/Nethermind/Nethermind.Merge.Plugin/MergePlugin.cs index 4af5134e72d..ae01e6772c1 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/MergePlugin.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/MergePlugin.cs @@ -7,8 +7,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac; -using Autofac.Core; -using Autofac.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using Nethermind.Api; using Nethermind.Api.Extensions; @@ -35,9 +33,6 @@ using Nethermind.Merge.Plugin.InvalidChainTracker; using Nethermind.Merge.Plugin.Synchronization; using Nethermind.Synchronization; -using Nethermind.Synchronization.Blocks; -using Nethermind.Specs.ChainSpecStyle; -using Nethermind.Synchronization.ParallelSync; using Nethermind.TxPool; namespace Nethermind.Merge.Plugin; diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/MergeSynchronizer.cs b/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/MergeSynchronizer.cs index ac3ad98313f..9be279f78f5 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/MergeSynchronizer.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/MergeSynchronizer.cs @@ -26,12 +26,6 @@ public class MergeSynchronizer( private readonly CancellationTokenSource? _syncCancellation = new(); private readonly ILogger _logger = logManager.GetClassLogger(); - public event EventHandler? SyncEvent - { - add => baseSynchronizer.SyncEvent += value; - remove => baseSynchronizer.SyncEvent -= value; - } - public void Start() { if (!syncConfig.SynchronizationEnabled) @@ -74,6 +68,14 @@ public void Dispose() { baseSynchronizer.Dispose(); } + + // May crash `dotnet format` if declared before any other use of `baseSynchronizer`. + // Seems like a bug in dotnet formatter or analyzer somewhere + public event EventHandler? SyncEvent + { + add => baseSynchronizer.SyncEvent += value; + remove => baseSynchronizer.SyncEvent -= value; + } } public class MergeSynchronizerModule : Module diff --git a/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/UnsafePivotUpdator.cs b/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/UnsafePivotUpdator.cs index ed618d66d33..ced64c221b8 100644 --- a/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/UnsafePivotUpdator.cs +++ b/src/Nethermind/Nethermind.Merge.Plugin/Synchronization/UnsafePivotUpdator.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Threading; using System.Threading.Tasks; using Nethermind.Blockchain; diff --git a/src/Nethermind/Nethermind.Network.Dns.Test/EnrDiscoveryTests.cs b/src/Nethermind/Nethermind.Network.Dns.Test/EnrDiscoveryTests.cs index 0c5dc4143ed..b0a622ee102 100644 --- a/src/Nethermind/Nethermind.Network.Dns.Test/EnrDiscoveryTests.cs +++ b/src/Nethermind/Nethermind.Network.Dns.Test/EnrDiscoveryTests.cs @@ -1,11 +1,9 @@ // SPDX-FileCopyrightText: 2023 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Threading; using System.Threading.Tasks; using FluentAssertions; using Nethermind.Core.Test.Builders; diff --git a/src/Nethermind/Nethermind.Network.Test/P2P/PacketSenderTests.cs b/src/Nethermind/Nethermind.Network.Test/P2P/PacketSenderTests.cs index 7d7aa9c3165..d2716120151 100644 --- a/src/Nethermind/Nethermind.Network.Test/P2P/PacketSenderTests.cs +++ b/src/Nethermind/Nethermind.Network.Test/P2P/PacketSenderTests.cs @@ -6,7 +6,6 @@ using DotNetty.Buffers; using DotNetty.Common.Utilities; using DotNetty.Transport.Channels; -using FluentAssertions; using Nethermind.Logging; using Nethermind.Network.P2P; using Nethermind.Network.P2P.Messages; diff --git a/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Eth/V65/Eth65ProtocolHandler.cs b/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Eth/V65/Eth65ProtocolHandler.cs index b322f6905ed..919b817e5c2 100644 --- a/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Eth/V65/Eth65ProtocolHandler.cs +++ b/src/Nethermind/Nethermind.Network/P2P/Subprotocols/Eth/V65/Eth65ProtocolHandler.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading; diff --git a/src/Nethermind/Nethermind.Network/StaticNodes/StaticNodesManager.cs b/src/Nethermind/Nethermind.Network/StaticNodes/StaticNodesManager.cs index c9f6a224ce7..5f119981a3f 100644 --- a/src/Nethermind/Nethermind.Network/StaticNodes/StaticNodesManager.cs +++ b/src/Nethermind/Nethermind.Network/StaticNodes/StaticNodesManager.cs @@ -9,7 +9,6 @@ using System.Net.Sockets; using System.Runtime.CompilerServices; using System.Text.Json; -using System.Text.Json.Serialization; using System.Threading; using System.Threading.Channels; using System.Threading.Tasks; diff --git a/src/Nethermind/Nethermind.Optimism/OPConfigHelper.cs b/src/Nethermind/Nethermind.Optimism/OPConfigHelper.cs index 251803fafaa..262304bdf20 100644 --- a/src/Nethermind/Nethermind.Optimism/OPConfigHelper.cs +++ b/src/Nethermind/Nethermind.Optimism/OPConfigHelper.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using Nethermind.Core; -using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Optimism; diff --git a/src/Nethermind/Nethermind.Optimism/OptimismChainSpecEngineParameters.cs b/src/Nethermind/Nethermind.Optimism/OptimismChainSpecEngineParameters.cs index 5b04a0015f7..abc4ed95aa0 100644 --- a/src/Nethermind/Nethermind.Optimism/OptimismChainSpecEngineParameters.cs +++ b/src/Nethermind/Nethermind.Optimism/OptimismChainSpecEngineParameters.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System; -using System.Collections.Generic; using Nethermind.Core; using Nethermind.Int256; using Nethermind.Specs; diff --git a/src/Nethermind/Nethermind.Optimism/OptimismHeaderValidator.cs b/src/Nethermind/Nethermind.Optimism/OptimismHeaderValidator.cs index 0851b0a29fd..e907458a957 100644 --- a/src/Nethermind/Nethermind.Optimism/OptimismHeaderValidator.cs +++ b/src/Nethermind/Nethermind.Optimism/OptimismHeaderValidator.cs @@ -1,15 +1,12 @@ // SPDX-FileCopyrightText: 2023 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using Nethermind.Blockchain; using Nethermind.Consensus; -using Nethermind.Consensus.Messages; using Nethermind.Consensus.Validators; using Nethermind.Core; using Nethermind.Core.Specs; -using Nethermind.Int256; using Nethermind.Logging; using Nethermind.Merge.Plugin; diff --git a/src/Nethermind/Nethermind.Optimism/OptimismPoSSwitcher.cs b/src/Nethermind/Nethermind.Optimism/OptimismPoSSwitcher.cs index 8dd42874806..5e3f35a4d69 100644 --- a/src/Nethermind/Nethermind.Optimism/OptimismPoSSwitcher.cs +++ b/src/Nethermind/Nethermind.Optimism/OptimismPoSSwitcher.cs @@ -4,7 +4,6 @@ using Nethermind.Core.Crypto; using Nethermind.Core.Specs; using Nethermind.Int256; -using Nethermind.Optimism; public class OptimismPoSSwitcher(ISpecProvider specProvider, long bedrockBlockNumber) : IPoSSwitcher { diff --git a/src/Nethermind/Nethermind.Optimism/OptimismSynchronizerModule.cs b/src/Nethermind/Nethermind.Optimism/OptimismSynchronizerModule.cs index d8feb664137..5106a09c8cc 100644 --- a/src/Nethermind/Nethermind.Optimism/OptimismSynchronizerModule.cs +++ b/src/Nethermind/Nethermind.Optimism/OptimismSynchronizerModule.cs @@ -3,10 +3,8 @@ using System; using Autofac; -using Nethermind.Blockchain.Synchronization; using Nethermind.Core; using Nethermind.Core.Specs; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.Synchronization; namespace Nethermind.Optimism; diff --git a/src/Nethermind/Nethermind.Optimism/Rpc/RegisterOptimismRpcModules.cs b/src/Nethermind/Nethermind.Optimism/Rpc/RegisterOptimismRpcModules.cs index 3f3072485f4..b568d7dbd14 100644 --- a/src/Nethermind/Nethermind.Optimism/Rpc/RegisterOptimismRpcModules.cs +++ b/src/Nethermind/Nethermind.Optimism/Rpc/RegisterOptimismRpcModules.cs @@ -10,7 +10,6 @@ using Nethermind.JsonRpc; using Nethermind.JsonRpc.Client; using Nethermind.JsonRpc.Modules; -using Nethermind.JsonRpc.Modules.Eth; using Nethermind.JsonRpc.Modules.Eth.FeeHistory; using Nethermind.Logging; using Nethermind.TxPool; diff --git a/src/Nethermind/Nethermind.Runner.Test/Ethereum/ContextWithMocks.cs b/src/Nethermind/Nethermind.Runner.Test/Ethereum/ContextWithMocks.cs index 2cbc5284269..dffc33953ac 100644 --- a/src/Nethermind/Nethermind.Runner.Test/Ethereum/ContextWithMocks.cs +++ b/src/Nethermind/Nethermind.Runner.Test/Ethereum/ContextWithMocks.cs @@ -6,7 +6,6 @@ using Nethermind.Api; using Nethermind.Blockchain; using Nethermind.Blockchain.Filters; -using Nethermind.Blockchain.Find; using Nethermind.Blockchain.Receipts; using Nethermind.Blockchain.Services; using Nethermind.Config; diff --git a/src/Nethermind/Nethermind.Runner.Test/EthereumRunnerTests.cs b/src/Nethermind/Nethermind.Runner.Test/EthereumRunnerTests.cs index 3f3690ece0f..14f0ce7cde0 100644 --- a/src/Nethermind/Nethermind.Runner.Test/EthereumRunnerTests.cs +++ b/src/Nethermind/Nethermind.Runner.Test/EthereumRunnerTests.cs @@ -12,9 +12,7 @@ using System.Threading.Tasks; using Nethermind.Api; using Nethermind.Config; -using Nethermind.Consensus.AuRa.Config; using Nethermind.Consensus.Clique; -using Nethermind.Consensus.Ethash; using Nethermind.Core.Test.IO; using Nethermind.Hive; using Nethermind.JsonRpc; diff --git a/src/Nethermind/Nethermind.Runner/JsonRpc/Startup.cs b/src/Nethermind/Nethermind.Runner/JsonRpc/Startup.cs index 7e970cda02d..da0603de3cc 100644 --- a/src/Nethermind/Nethermind.Runner/JsonRpc/Startup.cs +++ b/src/Nethermind/Nethermind.Runner/JsonRpc/Startup.cs @@ -22,7 +22,6 @@ using Nethermind.Api; using Nethermind.Config; using Nethermind.Core.Authentication; -using Nethermind.Core.Extensions; using Nethermind.Core.Resettables; using Nethermind.HealthChecks; using Nethermind.JsonRpc; diff --git a/src/Nethermind/Nethermind.Serialization.Json/EthereumJsonSerializer.cs b/src/Nethermind/Nethermind.Serialization.Json/EthereumJsonSerializer.cs index 6c8b9b74c20..2bf6b7ca97b 100644 --- a/src/Nethermind/Nethermind.Serialization.Json/EthereumJsonSerializer.cs +++ b/src/Nethermind/Nethermind.Serialization.Json/EthereumJsonSerializer.cs @@ -9,7 +9,6 @@ using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Json.Serialization; -using System.Text.Unicode; using System.Threading.Tasks; using Nethermind.Core.Collections; diff --git a/src/Nethermind/Nethermind.Serialization.Rlp/BlockBodyDecoder.cs b/src/Nethermind/Nethermind.Serialization.Rlp/BlockBodyDecoder.cs index 04d17149f09..df648cf3945 100644 --- a/src/Nethermind/Nethermind.Serialization.Rlp/BlockBodyDecoder.cs +++ b/src/Nethermind/Nethermind.Serialization.Rlp/BlockBodyDecoder.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System.Linq; -using System.Runtime.CompilerServices; using Nethermind.Core; namespace Nethermind.Serialization.Rlp; diff --git a/src/Nethermind/Nethermind.Serialization.Rlp/BlockDecoder.cs b/src/Nethermind/Nethermind.Serialization.Rlp/BlockDecoder.cs index 78ee520652c..3f4f542307e 100644 --- a/src/Nethermind/Nethermind.Serialization.Rlp/BlockDecoder.cs +++ b/src/Nethermind/Nethermind.Serialization.Rlp/BlockDecoder.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.Collections.Generic; using Nethermind.Core; namespace Nethermind.Serialization.Rlp diff --git a/src/Nethermind/Nethermind.Serialization.Rlp/Eip7702/AuthorizationTupleDecoder.cs b/src/Nethermind/Nethermind.Serialization.Rlp/Eip7702/AuthorizationTupleDecoder.cs index dc69da2c04e..46bbc1cf887 100644 --- a/src/Nethermind/Nethermind.Serialization.Rlp/Eip7702/AuthorizationTupleDecoder.cs +++ b/src/Nethermind/Nethermind.Serialization.Rlp/Eip7702/AuthorizationTupleDecoder.cs @@ -5,7 +5,6 @@ using Nethermind.Core; using Nethermind.Core.Crypto; using Nethermind.Int256; -using Nethermind.Serialization.Rlp.Eip2930; using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; diff --git a/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/ChainSpecLoaderTests.cs b/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/ChainSpecLoaderTests.cs index ef77ec10fd9..a85bd4f9371 100644 --- a/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/ChainSpecLoaderTests.cs +++ b/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/ChainSpecLoaderTests.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; using System.IO; using FluentAssertions; using Nethermind.Consensus.Ethash; diff --git a/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/TestChainSpecParametersProvider.cs b/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/TestChainSpecParametersProvider.cs index 20c63293943..2e541927dd8 100644 --- a/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/TestChainSpecParametersProvider.cs +++ b/src/Nethermind/Nethermind.Specs.Test/ChainSpecStyle/TestChainSpecParametersProvider.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using FastEnumUtility; using Nethermind.Consensus.Ethash; using Nethermind.Specs.ChainSpecStyle; diff --git a/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecLoader.cs b/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecLoader.cs index 1ed55c51e3c..c91816e1541 100644 --- a/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecLoader.cs +++ b/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecLoader.cs @@ -3,8 +3,6 @@ using System; using System.Collections.Generic; -using System.Collections.Immutable; -using System.Globalization; using System.IO; using System.Linq; using System.Text.Json; diff --git a/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecParametersProvider.cs b/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecParametersProvider.cs index 66f31efe023..f4ae7a79b52 100644 --- a/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecParametersProvider.cs +++ b/src/Nethermind/Nethermind.Specs/ChainSpecStyle/ChainSpecParametersProvider.cs @@ -2,10 +2,7 @@ // SPDX-License-Identifier: LGPL-3.0-only -using System.Reflection; using System.Text.Json; -using Nethermind.Config; -using Nethermind.Core.Exceptions; using Nethermind.Serialization.Json; namespace Nethermind.Specs.ChainSpecStyle; diff --git a/src/Nethermind/Nethermind.Specs/ChainSpecStyle/Json/ChainSpecJson.cs b/src/Nethermind/Nethermind.Specs/ChainSpecStyle/Json/ChainSpecJson.cs index 25712d814d6..bf9ab9c668e 100644 --- a/src/Nethermind/Nethermind.Specs/ChainSpecStyle/Json/ChainSpecJson.cs +++ b/src/Nethermind/Nethermind.Specs/ChainSpecStyle/Json/ChainSpecJson.cs @@ -1,13 +1,10 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using System.Text.Json.Serialization; -using Nethermind.Core; -using Nethermind.Int256; namespace Nethermind.Specs.ChainSpecStyle.Json { diff --git a/src/Nethermind/Nethermind.Synchronization.Test/FastBlocks/BodiesSyncFeedTests.cs b/src/Nethermind/Nethermind.Synchronization.Test/FastBlocks/BodiesSyncFeedTests.cs index 98bf09d31f8..5fbc4f1d977 100644 --- a/src/Nethermind/Nethermind.Synchronization.Test/FastBlocks/BodiesSyncFeedTests.cs +++ b/src/Nethermind/Nethermind.Synchronization.Test/FastBlocks/BodiesSyncFeedTests.cs @@ -6,7 +6,6 @@ using System.Threading.Tasks; using FluentAssertions; using Nethermind.Blockchain; -using Nethermind.Blockchain.Blocks; using Nethermind.Blockchain.Synchronization; using Nethermind.Core; using Nethermind.Core.Extensions; diff --git a/src/Nethermind/Nethermind.Synchronization.Test/OldStyleFullSynchronizerTests.cs b/src/Nethermind/Nethermind.Synchronization.Test/OldStyleFullSynchronizerTests.cs index 3101d8408a0..21c03ab87a6 100644 --- a/src/Nethermind/Nethermind.Synchronization.Test/OldStyleFullSynchronizerTests.cs +++ b/src/Nethermind/Nethermind.Synchronization.Test/OldStyleFullSynchronizerTests.cs @@ -5,7 +5,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac; -using Autofac.Extensions.DependencyInjection; using FluentAssertions; using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; diff --git a/src/Nethermind/Nethermind.Synchronization.Test/SnapSync/SnapProviderTests.cs b/src/Nethermind/Nethermind.Synchronization.Test/SnapSync/SnapProviderTests.cs index 1529dc46714..f633580f2dc 100644 --- a/src/Nethermind/Nethermind.Synchronization.Test/SnapSync/SnapProviderTests.cs +++ b/src/Nethermind/Nethermind.Synchronization.Test/SnapSync/SnapProviderTests.cs @@ -8,7 +8,6 @@ using Nethermind.Logging; using Nethermind.State.Snap; using Nethermind.Synchronization.SnapSync; -using Nethermind.Trie; using NSubstitute; using NUnit.Framework; using System; diff --git a/src/Nethermind/Nethermind.Synchronization.Test/SyncThreadTests.cs b/src/Nethermind/Nethermind.Synchronization.Test/SyncThreadTests.cs index bb6cc747ee5..85dfb1c21af 100644 --- a/src/Nethermind/Nethermind.Synchronization.Test/SyncThreadTests.cs +++ b/src/Nethermind/Nethermind.Synchronization.Test/SyncThreadTests.cs @@ -6,7 +6,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac; -using Autofac.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; using Nethermind.Blockchain.BeaconBlockRoot; @@ -34,7 +33,6 @@ using Nethermind.State; using Nethermind.Stats; using Nethermind.Evm.TransactionProcessing; -using Nethermind.Synchronization.Blocks; using Nethermind.Synchronization.ParallelSync; using Nethermind.Synchronization.Peers; using Nethermind.Trie.Pruning; diff --git a/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerModuleTests.cs b/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerModuleTests.cs index 816ae7e9e45..ad3cd9feaa4 100644 --- a/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerModuleTests.cs +++ b/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerModuleTests.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; using System.Threading; using System.Threading.Tasks; using Autofac; diff --git a/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerTests.cs b/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerTests.cs index df8d38f1993..2735c2cc93e 100644 --- a/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerTests.cs +++ b/src/Nethermind/Nethermind.Synchronization.Test/SynchronizerTests.cs @@ -9,7 +9,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac; -using Autofac.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; using Nethermind.Blockchain.Receipts; diff --git a/src/Nethermind/Nethermind.Synchronization/DbTuner/SyncDbOptimizer.cs b/src/Nethermind/Nethermind.Synchronization/DbTuner/SyncDbOptimizer.cs index 13a8ecbb4a6..bb5e64e6059 100644 --- a/src/Nethermind/Nethermind.Synchronization/DbTuner/SyncDbOptimizer.cs +++ b/src/Nethermind/Nethermind.Synchronization/DbTuner/SyncDbOptimizer.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using Autofac.Features.AttributeFilters; -using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain.Synchronization; using Nethermind.Db; using Nethermind.Synchronization.FastBlocks; diff --git a/src/Nethermind/Nethermind.Synchronization/FastBlocks/BodiesSyncFeed.cs b/src/Nethermind/Nethermind.Synchronization/FastBlocks/BodiesSyncFeed.cs index edf132f066c..8c8598c3543 100644 --- a/src/Nethermind/Nethermind.Synchronization/FastBlocks/BodiesSyncFeed.cs +++ b/src/Nethermind/Nethermind.Synchronization/FastBlocks/BodiesSyncFeed.cs @@ -5,9 +5,7 @@ using System.Threading; using System.Threading.Tasks; using Autofac.Features.AttributeFilters; -using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; -using Nethermind.Blockchain.Blocks; using Nethermind.Blockchain.Synchronization; using Nethermind.Consensus.Validators; using Nethermind.Core; diff --git a/src/Nethermind/Nethermind.Synchronization/FastBlocks/ReceiptsSyncFeed.cs b/src/Nethermind/Nethermind.Synchronization/FastBlocks/ReceiptsSyncFeed.cs index 0869d2bcbbc..36bd57aa041 100644 --- a/src/Nethermind/Nethermind.Synchronization/FastBlocks/ReceiptsSyncFeed.cs +++ b/src/Nethermind/Nethermind.Synchronization/FastBlocks/ReceiptsSyncFeed.cs @@ -7,7 +7,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac.Features.AttributeFilters; -using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; using Nethermind.Blockchain.Receipts; using Nethermind.Blockchain.Synchronization; diff --git a/src/Nethermind/Nethermind.Synchronization/FastSync/TreeSync.cs b/src/Nethermind/Nethermind.Synchronization/FastSync/TreeSync.cs index 03e05a65660..81bac6dd7d6 100644 --- a/src/Nethermind/Nethermind.Synchronization/FastSync/TreeSync.cs +++ b/src/Nethermind/Nethermind.Synchronization/FastSync/TreeSync.cs @@ -9,7 +9,6 @@ using System.Threading; using System.Threading.Tasks; using Autofac.Features.AttributeFilters; -using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; using Nethermind.Core; using Nethermind.Core.Caching; diff --git a/src/Nethermind/Nethermind.Synchronization/ISynchronizer.cs b/src/Nethermind/Nethermind.Synchronization/ISynchronizer.cs index 26f758afe5c..89993c1f1d4 100644 --- a/src/Nethermind/Nethermind.Synchronization/ISynchronizer.cs +++ b/src/Nethermind/Nethermind.Synchronization/ISynchronizer.cs @@ -3,7 +3,6 @@ using System; using System.Threading.Tasks; -using Nethermind.Synchronization.ParallelSync; namespace Nethermind.Synchronization { diff --git a/src/Nethermind/Nethermind.Synchronization/ParallelSync/MultiSyncModeSelector.cs b/src/Nethermind/Nethermind.Synchronization/ParallelSync/MultiSyncModeSelector.cs index 7cfc08deca8..0246035c7ba 100644 --- a/src/Nethermind/Nethermind.Synchronization/ParallelSync/MultiSyncModeSelector.cs +++ b/src/Nethermind/Nethermind.Synchronization/ParallelSync/MultiSyncModeSelector.cs @@ -8,10 +8,8 @@ using System.Threading; using System.Threading.Tasks; using Nethermind.Blockchain.Synchronization; -using Nethermind.Core; using Nethermind.Int256; using Nethermind.Logging; -using Nethermind.Specs.ChainSpecStyle; using Nethermind.State.Snap; using Nethermind.Synchronization.Peers; diff --git a/src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncDispatcher.cs b/src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncDispatcher.cs index 272b09636ed..5966bbbf1cd 100644 --- a/src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncDispatcher.cs +++ b/src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncDispatcher.cs @@ -5,7 +5,6 @@ using System.Threading; using System.Threading.Tasks; using Nethermind.Blockchain.Synchronization; -using Nethermind.Core; using Nethermind.Core.Exceptions; using Nethermind.Core.Extensions; using Nethermind.Logging; diff --git a/src/Nethermind/Nethermind.Synchronization/SnapSync/ProgressTracker.cs b/src/Nethermind/Nethermind.Synchronization/SnapSync/ProgressTracker.cs index 4b97e4c6fe3..1fddace6a8f 100644 --- a/src/Nethermind/Nethermind.Synchronization/SnapSync/ProgressTracker.cs +++ b/src/Nethermind/Nethermind.Synchronization/SnapSync/ProgressTracker.cs @@ -9,7 +9,6 @@ using System.Text; using System.Threading; using Autofac.Features.AttributeFilters; -using Microsoft.Extensions.DependencyInjection; using Nethermind.Blockchain; using Nethermind.Blockchain.Synchronization; using Nethermind.Core; diff --git a/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProvider.cs b/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProvider.cs index 99e598804c8..307a9d4b935 100644 --- a/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProvider.cs +++ b/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProvider.cs @@ -7,7 +7,6 @@ using System.Runtime.InteropServices; using System.Threading; using Autofac.Features.AttributeFilters; -using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.ObjectPool; using Nethermind.Core; using Nethermind.Core.Caching; diff --git a/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProviderHelper.cs b/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProviderHelper.cs index 2bf517043f2..456cc42d642 100644 --- a/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProviderHelper.cs +++ b/src/Nethermind/Nethermind.Synchronization/SnapSync/SnapProviderHelper.cs @@ -4,11 +4,9 @@ using System; using System.Collections.Generic; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Threading; using Nethermind.Core; using Nethermind.Core.Crypto; -using Nethermind.Core.Extensions; using Nethermind.Serialization.Rlp; using Nethermind.State; using Nethermind.State.Snap; diff --git a/src/Nethermind/Nethermind.Taiko/TaikoChainSpecEngineParameters.cs b/src/Nethermind/Nethermind.Taiko/TaikoChainSpecEngineParameters.cs index 67277871a87..87f0b3757a1 100644 --- a/src/Nethermind/Nethermind.Taiko/TaikoChainSpecEngineParameters.cs +++ b/src/Nethermind/Nethermind.Taiko/TaikoChainSpecEngineParameters.cs @@ -1,8 +1,6 @@ // SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Collections.Generic; -using Nethermind.Specs; using Nethermind.Specs.ChainSpecStyle; namespace Nethermind.Taiko; diff --git a/src/Nethermind/Nethermind.Trie/PatriciaTree.cs b/src/Nethermind/Nethermind.Trie/PatriciaTree.cs index 9bcd948dc50..d865c4e9ff0 100644 --- a/src/Nethermind/Nethermind.Trie/PatriciaTree.cs +++ b/src/Nethermind/Nethermind.Trie/PatriciaTree.cs @@ -3,7 +3,6 @@ using System; using System.Buffers; -using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; diff --git a/src/Nethermind/Nethermind.Trie/Pruning/NullTrieStore.cs b/src/Nethermind/Nethermind.Trie/Pruning/NullTrieStore.cs index 5e96cb610ea..6eaf83163a3 100644 --- a/src/Nethermind/Nethermind.Trie/Pruning/NullTrieStore.cs +++ b/src/Nethermind/Nethermind.Trie/Pruning/NullTrieStore.cs @@ -1,10 +1,6 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System; -using System.Runtime.CompilerServices; -using System.Threading; -using System.Threading.Tasks; using Nethermind.Core; using Nethermind.Core.Crypto; diff --git a/src/Nethermind/Nethermind.Trie/Pruning/ReadOnlyTrieStore.cs b/src/Nethermind/Nethermind.Trie/Pruning/ReadOnlyTrieStore.cs index b8d5204a9a9..7814c44f6cd 100644 --- a/src/Nethermind/Nethermind.Trie/Pruning/ReadOnlyTrieStore.cs +++ b/src/Nethermind/Nethermind.Trie/Pruning/ReadOnlyTrieStore.cs @@ -2,7 +2,6 @@ // SPDX-License-Identifier: LGPL-3.0-only using System; -using System.Threading; using Nethermind.Core; using Nethermind.Core.Crypto; diff --git a/src/Nethermind/Nethermind.Trie/TrieNode.Visitor.cs b/src/Nethermind/Nethermind.Trie/TrieNode.Visitor.cs index b0a970f8ca9..fc9532fe718 100644 --- a/src/Nethermind/Nethermind.Trie/TrieNode.Visitor.cs +++ b/src/Nethermind/Nethermind.Trie/TrieNode.Visitor.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; using Nethermind.Core; using Nethermind.Core.Collections; -using Nethermind.Core.Cpu; using Nethermind.Core.Crypto; using Nethermind.Core.Threading; using Nethermind.Serialization.Rlp; diff --git a/src/Nethermind/Nethermind.TxPool/Filters/RecoverAuthorityFilter.cs b/src/Nethermind/Nethermind.TxPool/Filters/RecoverAuthorityFilter.cs index 8075d9d14dd..ebe49896a87 100644 --- a/src/Nethermind/Nethermind.TxPool/Filters/RecoverAuthorityFilter.cs +++ b/src/Nethermind/Nethermind.TxPool/Filters/RecoverAuthorityFilter.cs @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only -using System.Threading.Tasks; using Nethermind.Core; using Nethermind.Crypto;