use of tech.pegasys.teku.statetransition.block.ReexecutingExecutionPayloadBlockManager in project teku by ConsenSys.
the class BeaconChainController method initBlockManager.
public void initBlockManager() {
LOG.debug("BeaconChainController.initBlockManager()");
final FutureItems<SignedBeaconBlock> futureBlocks = FutureItems.create(SignedBeaconBlock::getSlot);
BlockValidator blockValidator = new BlockValidator(spec, recentChainData);
if (spec.isMilestoneSupported(SpecMilestone.BELLATRIX)) {
blockManager = new ReexecutingExecutionPayloadBlockManager(recentChainData, blockImporter, pendingBlocks, futureBlocks, blockValidator, beaconAsyncRunner);
} else {
blockManager = new BlockManager(recentChainData, blockImporter, pendingBlocks, futureBlocks, blockValidator);
}
eventChannels.subscribe(SlotEventsChannel.class, blockManager).subscribe(BlockImportChannel.class, blockManager).subscribe(BlockImportNotifications.class, blockManager);
}
Aggregations