use of org.aion.zero.impl.valid.StakingSeedCreationRule in project aion by aionnetwork.
the class ChainConfiguration method createNonceSeedValidator.
public GreatGrandParentBlockHeaderValidator createNonceSeedValidator() {
List<GreatGrandParentDependantBlockHeaderRule> posRules = Collections.singletonList(new StakingSeedCreationRule());
Map<Seal, List<GreatGrandParentDependantBlockHeaderRule>> unityRules = new EnumMap<>(Seal.class);
unityRules.put(Seal.PROOF_OF_STAKE, posRules);
return new GreatGrandParentBlockHeaderValidator(unityRules);
}
Aggregations