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

Revise configuration docs #7576

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/Nethermind/Nethermind.Config/IBlocksConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public interface IBlocksConfig : IConfig
[ConfigItem(Description = "Whether to pre-warm the state when processing blocks. This can lead to an up to 2x speed-up in the main loop block processing.", DefaultValue = "True")]
bool PreWarmStateOnBlockProcessing { get; set; }

[ConfigItem(Description = "Block Production timeout, in milliseconds.", DefaultValue = "4000")]
[ConfigItem(Description = "The block production timeout, in milliseconds.", DefaultValue = "4000")]
int BlockProductionTimeoutMs { get; set; }

[ConfigItem(Description = "Genesis block load timeout, in milliseconds.", DefaultValue = "40000")]
[ConfigItem(Description = "The genesis block load timeout, in milliseconds.", DefaultValue = "40000")]
int GenesisTimeoutMs { get; set; }

byte[] GetExtraDataBytes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ namespace Nethermind.Consensus.Processing.CensorshipDetector;

public interface ICensorshipDetectorConfig : IConfig
{
[ConfigItem(DefaultValue = "true",
Description = "Enabling censorship detection feature")]
[ConfigItem(DefaultValue = "true", Description = "Whether to enable censorship detection.")]
bool Enabled { get; set; }

[ConfigItem(DefaultValue = "2",
Description = "Number of consecutive blocks with detected potential censorship to report censorship attempt")]
Description = "The number of the consecutive blocks with detected potential censorship to report.")]
uint BlockCensorshipThreshold { get; set; }

[ConfigItem(DefaultValue = "null",
Description = "The addresses for which censorship is being detected.")]
[ConfigItem(DefaultValue = "null", Description = "The addresses to detect censorship for.")]
string[]? AddressesForCensorshipDetection { get; set; }
}