Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement EIP-4444: automatic history removal #8040

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Nethermind/Nethermind.Config/HistoryConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// SPDX-FileCopyrightText: 2025 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only

namespace Nethermind.Config;

public class HistoryConfig : IHistoryConfig
{
public ulong? HistoryPruneEpochs { get; set; }
public bool DropPreMerge { get; set; }
}
18 changes: 18 additions & 0 deletions src/Nethermind/Nethermind.Config/IHistoryConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-FileCopyrightText: 2025 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only

namespace Nethermind.Config;

public interface IHistoryConfig : IConfig
{
// For EIP-4444 set default to 82125
[ConfigItem(
Description = "The number of epochs to retain historical blocks and receipts. Set to null for unlimited retention.",
DefaultValue = "null")]
ulong? HistoryPruneEpochs { get; set; }

[ConfigItem(
Description = "Whether to drop pre-merge blocks and receipts.",
DefaultValue = "false")]
bool DropPreMerge { get; set; }
}
Loading