use of org.aion.zero.impl.valid.AionDifficultyRule in project aion by aionnetwork.
the class ChainConfiguration method createPreUnityGrandParentHeaderValidator.
public GrandParentBlockHeaderValidator createPreUnityGrandParentHeaderValidator() {
List<GrandParentDependantBlockHeaderRule> powRules = Collections.singletonList(new AionDifficultyRule(this));
Map<Seal, List<GrandParentDependantBlockHeaderRule>> unityRules = new EnumMap<>(Seal.class);
unityRules.put(Seal.PROOF_OF_WORK, powRules);
return new GrandParentBlockHeaderValidator(unityRules);
}
Aggregations