Search in sources :

Example 1 with InMemoryForksEpochStore

use of com.radixdlt.statecomputer.forks.InMemoryForksEpochStore in project radixdlt by radixdlt.

the class EngineStatusServiceTest method setup.

private void setup(long currentEpoch) {
    final RadixEngine<LedgerAndBFTProof> radixEngine = rmock(RadixEngine.class);
    final var committedReader = mock(CommittedReader.class);
    final var lastProof = mock(LedgerProof.class);
    when(lastProof.getEpoch()).thenReturn(currentEpoch);
    forksEpochStore = new InMemoryForksEpochStore(new InMemoryForksEpochStore.Store());
    forkVoteStatusService = mock(ForkVoteStatusService.class);
    sut = new EngineStatusService(radixEngine, committedReader, lastProof, lastProof, forks, forksEpochStore, forkVoteStatusService);
}
Also used : ForkVoteStatusService(com.radixdlt.api.system.health.ForkVoteStatusService) LedgerAndBFTProof(com.radixdlt.statecomputer.LedgerAndBFTProof) InMemoryForksEpochStore(com.radixdlt.statecomputer.forks.InMemoryForksEpochStore) InMemoryForksEpochStore(com.radixdlt.statecomputer.forks.InMemoryForksEpochStore)

Aggregations

ForkVoteStatusService (com.radixdlt.api.system.health.ForkVoteStatusService)1 LedgerAndBFTProof (com.radixdlt.statecomputer.LedgerAndBFTProof)1 InMemoryForksEpochStore (com.radixdlt.statecomputer.forks.InMemoryForksEpochStore)1