use of com.radixdlt.hotstuff.HighQC in project radixdlt by radixdlt.
the class PacemakerTest method setUp.
@Before
public void setUp() {
HighQC highQC = mock(HighQC.class);
QuorumCertificate committedQc = mock(QuorumCertificate.class);
when(committedQc.getView()).thenReturn(View.of(0));
when(highQC.highestCommittedQC()).thenReturn(committedQc);
ViewUpdate initialViewUpdate = ViewUpdate.create(View.of(0), highQC, mock(BFTNode.class), mock(BFTNode.class));
this.pacemaker = new Pacemaker(this.self, this.counters, this.validatorSet, this.vertexStore, this.safetyRules, this.timeoutDispatcher, this.timeoutSender, this.timeoutCalculator, this.nextTxnsGenerator, this.proposalDispatcher, this.voteDispatcher, hasher, timeSupplier, initialViewUpdate, new SystemCountersImpl());
}
Aggregations