@Test void shouldTriggerReorgWhenEmptyHeadSlotFilled() { forkChoice.processHead(ONE, false); final SignedBlockAndState slot1Block = storageSystem.chainUpdater().advanceChain(ONE); forkChoice.processHead(ONE, false); final List<ReorgEvent> reorgEvents = storageSystem.reorgEventChannel().getReorgEvents(); assertThat(reorgEvents).hasSize(1); assertThat(reorgEvents.get(0).getBestSlot()).isEqualTo(ONE); assertThat(reorgEvents.get(0).getNewBestBlockRoot()).isEqualTo(slot1Block.getRoot()); }
public void processHead() { processHead(Optional.empty(), false); }
ForkChoice { public void processHead() { processHead(Optional.empty(), false); } }
ForkChoice { public void processHead() { processHead(Optional.empty(), false); } ForkChoice(
      final ForkChoiceExecutor forkChoiceExecutor,
      final RecentChainData recentChainData,
      final StateTransition stateTransition); }
ForkChoice { public void processHead() { processHead(Optional.empty(), false); } ForkChoice(
      final ForkChoiceExecutor forkChoiceExecutor,
      final RecentChainData recentChainData,
      final StateTransition stateTransition); void processHead(); void processHead(UInt64 nodeSlot, boolean syncing); SafeFuture<BlockImportResult> onBlock(
      final SignedBeaconBlock block, Optional<BeaconState> preState); SafeFuture<AttestationProcessingResult> onAttestation(
      final ValidateableAttestation attestation); void save(); void applyIndexedAttestations(final List<ValidateableAttestation> attestations); }
ForkChoice { public void processHead() { processHead(Optional.empty(), false); } ForkChoice(
      final ForkChoiceExecutor forkChoiceExecutor,
      final RecentChainData recentChainData,
      final StateTransition stateTransition); void processHead(); void processHead(UInt64 nodeSlot, boolean syncing); SafeFuture<BlockImportResult> onBlock(
      final SignedBeaconBlock block, Optional<BeaconState> preState); SafeFuture<AttestationProcessingResult> onAttestation(
      final ValidateableAttestation attestation); void save(); void applyIndexedAttestations(final List<ValidateableAttestation> attestations);  }