use of org.aion.zero.impl.valid.GrandParentDependantBlockHeaderRule in project aion by aionnetwork.
the class ChainConfiguration method createVRFValidator.
public GrandParentBlockHeaderValidator createVRFValidator() {
List<GrandParentDependantBlockHeaderRule> posRules = Collections.singletonList(new VRFProofRule());
Map<Seal, List<GrandParentDependantBlockHeaderRule>> vrfProofRules = new EnumMap<>(Seal.class);
vrfProofRules.put(Seal.PROOF_OF_STAKE, posRules);
return new GrandParentBlockHeaderValidator(vrfProofRules);
}
use of org.aion.zero.impl.valid.GrandParentDependantBlockHeaderRule 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