@Test void previousLiveValidators_treatSameBitIndexInDifferentCommitteeAsUnique() { final Bitlist bitlist = bitlistOf(1, 3, 5, 7); final List<PendingAttestation> attestations = Stream.concat(createAttestations(13, 1, bitlist), createAttestations(13, 2, bitlist)) .collect(toList()); withPreviousEpochAttestations(attestations); beaconChainMetrics.onSlot(UInt64.valueOf(100)); assertThat(metricsSystem.getGauge(BEACON, "previous_live_validators").getValue()).isEqualTo(8); }
@Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } BeaconChainMetrics(
      final RecentChainData recentChainData,
      final NodeSlot nodeSlot,
      final MetricsSystem metricsSystem,
      final Eth2Network p2pNetwork); }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } BeaconChainMetrics(
      final RecentChainData recentChainData,
      final NodeSlot nodeSlot,
      final MetricsSystem metricsSystem,
      final Eth2Network p2pNetwork); @Override void onSlot(final UInt64 slot); }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } BeaconChainMetrics(
      final RecentChainData recentChainData,
      final NodeSlot nodeSlot,
      final MetricsSystem metricsSystem,
      final Eth2Network p2pNetwork); @Override void onSlot(final UInt64 slot);  }