C# Class Blockcore.Features.PoA.BasePoAFeatureConsensusRules.PoAHeaderDifficultyRule

All PoA blocks should be of constant difficulty so chainwork always raises by constant amount with each new block.
Having this rule guarantees that longest chain will always be the best chain in terms of chainwork.
Inheritance: HeaderValidationConsensusRule
Show file Open project: x42protocol/x42-BlockCore

Public Properties

Property Type Description
PoABlockDifficulty Target

Public Methods

Method Description
Run ( RuleContext context ) : void

Method Details

Run() public method

public Run ( RuleContext context ) : void
context RuleContext
return void

Property Details

PoABlockDifficulty public static property

public static Target PoABlockDifficulty
return Target