@Test public void returnProperTopicName() { final Bytes4 forkDigest = Bytes4.fromHexString("0x11223344"); final ForkInfo forkInfo = mock(ForkInfo.class); when(forkInfo.getForkDigest()).thenReturn(forkDigest); final BlockTopicHandler topicHandler = new BlockTopicHandler(asyncRunner, gossipEncoding, forkInfo, blockValidator, eventBus); assertThat(topicHandler.getTopic()).isEqualTo("/eth2/11223344/beacon_block/ssz_snappy"); }
@Override public Bytes4 getForkDigest() { return forkDigest; }
BlockTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedBeaconBlock> { @Override public Bytes4 getForkDigest() { return forkDigest; } }
BlockTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedBeaconBlock> { @Override public Bytes4 getForkDigest() { return forkDigest; } BlockTopicHandler(
      final AsyncRunner asyncRunner,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final BlockValidator blockValidator,
      final EventBus eventBus); }
BlockTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedBeaconBlock> { @Override public Bytes4 getForkDigest() { return forkDigest; } BlockTopicHandler(
      final AsyncRunner asyncRunner,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final BlockValidator blockValidator,
      final EventBus eventBus); @Override void processMessage(
      final SignedBeaconBlock block, InternalValidationResult internalValidationResult); @Override GossipEncoding getGossipEncoding(); Object createEvent(final SignedBeaconBlock block); @Override String getTopicName(); @Override Class<SignedBeaconBlock> getValueType(); @Override Bytes4 getForkDigest(); }
BlockTopicHandler extends Eth2TopicHandler.SimpleEth2TopicHandler<SignedBeaconBlock> { @Override public Bytes4 getForkDigest() { return forkDigest; } BlockTopicHandler(
      final AsyncRunner asyncRunner,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final BlockValidator blockValidator,
      final EventBus eventBus); @Override void processMessage(
      final SignedBeaconBlock block, InternalValidationResult internalValidationResult); @Override GossipEncoding getGossipEncoding(); Object createEvent(final SignedBeaconBlock block); @Override String getTopicName(); @Override Class<SignedBeaconBlock> getValueType(); @Override Bytes4 getForkDigest(); static String TOPIC_NAME; }