@Test void currentLiveValidators_treatSameBitIndexInSameSlotAsOneValidator() { final Bitlist bitlist1 = bitlistOf(1, 3, 5, 7); final Bitlist bitlist2 = bitlistOf(1, 2, 3, 4); withCurrentEpochAttestations(createAttestations(13, 1, bitlist1, bitlist2).collect(toList())); beaconChainMetrics.onSlot(UInt64.valueOf(100)); assertThat(metricsSystem.getGauge(BEACON, "current_live_validators").getValue()).isEqualTo(6); }
@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);  }