Skip to content

Commit

Permalink
Revise configuration docs (#7576)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubo authored Oct 9, 2024
1 parent 7619378 commit 522deba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
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 = "false",
Description = "Enabling censorship detection feature")]
[ConfigItem(DefaultValue = "false", 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; }
}

0 comments on commit 522deba

Please sign in to comment.