Search in sources :

Example 1 with ForkChoiceTrigger

use of tech.pegasys.teku.statetransition.forkchoice.ForkChoiceTrigger in project teku by ConsenSys.

the class BeaconChainController method initForkChoice.

protected void initForkChoice() {
    LOG.debug("BeaconChainController.initForkChoice()");
    final boolean proposerBoostEnabled = beaconConfig.eth2NetworkConfig().isProposerBoostEnabled();
    forkChoice = new ForkChoice(spec, forkChoiceExecutor, recentChainData, forkChoiceNotifier, new MergeTransitionBlockValidator(spec, recentChainData, executionEngine), proposerBoostEnabled);
    forkChoiceTrigger = new ForkChoiceTrigger(forkChoice);
}
Also used : MergeTransitionBlockValidator(tech.pegasys.teku.statetransition.forkchoice.MergeTransitionBlockValidator) ForkChoice(tech.pegasys.teku.statetransition.forkchoice.ForkChoice) ForkChoiceTrigger(tech.pegasys.teku.statetransition.forkchoice.ForkChoiceTrigger)

Aggregations

ForkChoice (tech.pegasys.teku.statetransition.forkchoice.ForkChoice)1 ForkChoiceTrigger (tech.pegasys.teku.statetransition.forkchoice.ForkChoiceTrigger)1 MergeTransitionBlockValidator (tech.pegasys.teku.statetransition.forkchoice.MergeTransitionBlockValidator)1