use of com.radixdlt.hotstuff.liveness.PacemakerState in project radixdlt by radixdlt.
the class EpochsConsensusModule method pacemakerStateFactory.
@Provides
private PacemakerStateFactory pacemakerStateFactory(EventDispatcher<EpochViewUpdate> epochViewUpdateEventDispatcher) {
return (initialView, epoch, proposerElection) -> new PacemakerState(initialView, proposerElection, viewUpdate -> {
EpochViewUpdate epochViewUpdate = new EpochViewUpdate(epoch, viewUpdate);
epochViewUpdateEventDispatcher.dispatch(epochViewUpdate);
});
}
Aggregations