@Test public void onBlockProposed() { SignedBeaconBlock block = dataStructureUtil.randomSignedBeaconBlock(1); Bytes serialized = gossipEncoding.encode(block); eventBus.post(new ProposedBlockEvent(block)); verify(topicChannel).gossip(serialized); }
@Subscribe @SuppressWarnings("unused") void onBlockProposed(final ProposedBlockEvent blockProposedEvent) { final Bytes data = gossipEncoding.encode(blockProposedEvent.getBlock()); channel.gossip(data); }
BlockGossipManager { @Subscribe @SuppressWarnings("unused") void onBlockProposed(final ProposedBlockEvent blockProposedEvent) { final Bytes data = gossipEncoding.encode(blockProposedEvent.getBlock()); channel.gossip(data); } }
BlockGossipManager { @Subscribe @SuppressWarnings("unused") void onBlockProposed(final ProposedBlockEvent blockProposedEvent) { final Bytes data = gossipEncoding.encode(blockProposedEvent.getBlock()); channel.gossip(data); } BlockGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final BlockValidator blockValidator,
      final EventBus eventBus); }
BlockGossipManager { @Subscribe @SuppressWarnings("unused") void onBlockProposed(final ProposedBlockEvent blockProposedEvent) { final Bytes data = gossipEncoding.encode(blockProposedEvent.getBlock()); channel.gossip(data); } BlockGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final BlockValidator blockValidator,
      final EventBus eventBus); void shutdown(); }
BlockGossipManager { @Subscribe @SuppressWarnings("unused") void onBlockProposed(final ProposedBlockEvent blockProposedEvent) { final Bytes data = gossipEncoding.encode(blockProposedEvent.getBlock()); channel.gossip(data); } BlockGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final BlockValidator blockValidator,
      final EventBus eventBus); void shutdown();  }