From d89f1ae58b3d306d1d0e9dc8d5ef80806f398c3f Mon Sep 17 00:00:00 2001 From: Tanishq Jasoria Date: Thu, 18 Apr 2024 03:03:29 +0530 Subject: [PATCH] reafc --- .../BlockHashInState/BlockHashInStateHandler.cs | 6 ------ .../BlockHashInState/IBlockHashInStateHandler.cs | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 src/Nethermind/Nethermind.Blockchain/BlockHashInState/IBlockHashInStateHandler.cs diff --git a/src/Nethermind/Nethermind.Blockchain/BlockHashInState/BlockHashInStateHandler.cs b/src/Nethermind/Nethermind.Blockchain/BlockHashInState/BlockHashInStateHandler.cs index 450dcbe4b1e..ce5ade715cd 100644 --- a/src/Nethermind/Nethermind.Blockchain/BlockHashInState/BlockHashInStateHandler.cs +++ b/src/Nethermind/Nethermind.Blockchain/BlockHashInState/BlockHashInStateHandler.cs @@ -14,12 +14,6 @@ namespace Nethermind.Blockchain.BlockHashInState; -public interface IBlockHashInStateHandler -{ - public void InitHistoryOnForkBlock(IBlockTree blockTree, BlockHeader currentBlock, IReleaseSpec spec, IWorldState stateProvider); - public void AddParentBlockHashToState(BlockHeader blockHeader, IReleaseSpec spec, IWorldState stateProvider); -} - public class BlockHashInStateHandler : IBlockHashInStateHandler { public void InitHistoryOnForkBlock(IBlockTree blockTree, BlockHeader currentBlock, IReleaseSpec spec, IWorldState stateProvider) diff --git a/src/Nethermind/Nethermind.Blockchain/BlockHashInState/IBlockHashInStateHandler.cs b/src/Nethermind/Nethermind.Blockchain/BlockHashInState/IBlockHashInStateHandler.cs new file mode 100644 index 00000000000..e3dd17fca52 --- /dev/null +++ b/src/Nethermind/Nethermind.Blockchain/BlockHashInState/IBlockHashInStateHandler.cs @@ -0,0 +1,14 @@ +// SPDX-FileCopyrightText: 2024 Demerzel Solutions Limited +// SPDX-License-Identifier: LGPL-3.0-only + +using Nethermind.Core; +using Nethermind.Core.Specs; +using Nethermind.State; + +namespace Nethermind.Blockchain.BlockHashInState; + +public interface IBlockHashInStateHandler +{ + public void InitHistoryOnForkBlock(IBlockTree blockTree, BlockHeader currentBlock, IReleaseSpec spec, IWorldState stateProvider); + public void AddParentBlockHashToState(BlockHeader blockHeader, IReleaseSpec spec, IWorldState stateProvider); +}