@Test public void returnProperTopicName() { final Bytes4 forkDigest = Bytes4.fromHexString("0x11223344"); final ForkInfo forkInfo = mock(ForkInfo.class); when(forkInfo.getForkDigest()).thenReturn(forkDigest); final VoluntaryExitTopicHandler topicHandler = new VoluntaryExitTopicHandler(asyncRunner, gossipEncoding, forkInfo, validator, consumer); assertThat(topicHandler.getTopic()).isEqualTo("/eth2/11223344/voluntary_exit/ssz_snappy"); }
@Override public Bytes4 getForkDigest() { return forkDigest; }
VoluntaryExitTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedVoluntaryExit> { @Override public Bytes4 getForkDigest() { return forkDigest; } }
VoluntaryExitTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedVoluntaryExit> { @Override public Bytes4 getForkDigest() { return forkDigest; } VoluntaryExitTopicHandler(
      final AsyncRunner asyncRunner,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final VoluntaryExitValidator validator,
      final GossipedOperationConsumer<SignedVoluntaryExit> consumer); }
VoluntaryExitTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedVoluntaryExit> { @Override public Bytes4 getForkDigest() { return forkDigest; } VoluntaryExitTopicHandler(
      final AsyncRunner asyncRunner,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final VoluntaryExitValidator validator,
      final GossipedOperationConsumer<SignedVoluntaryExit> consumer); @Override GossipEncoding getGossipEncoding(); @Override String getTopicName(); @Override Class<SignedVoluntaryExit> getValueType(); @Override Bytes4 getForkDigest(); }
VoluntaryExitTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedVoluntaryExit> { @Override public Bytes4 getForkDigest() { return forkDigest; } VoluntaryExitTopicHandler(
      final AsyncRunner asyncRunner,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final VoluntaryExitValidator validator,
      final GossipedOperationConsumer<SignedVoluntaryExit> consumer); @Override GossipEncoding getGossipEncoding(); @Override String getTopicName(); @Override Class<SignedVoluntaryExit> getValueType(); @Override Bytes4 getForkDigest(); static String TOPIC_NAME; }