use of org.aion.zero.impl.valid.VRFProofRule 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);
}
Aggregations