@Test public void onNewAggregate() { final SignedAggregateAndProof aggregate = dataStructureUtil.randomSignedAggregateAndProof(); final Bytes serialized = gossipEncoding.encode(aggregate); gossipManager.onNewAggregate(ValidateableAttestation.fromSignedAggregate(aggregate)); verify(topicChannel).gossip(serialized); }
public void onNewAggregate(final ValidateableAttestation validateableAttestation) { if (!validateableAttestation.isAggregate() || !validateableAttestation.markGossiped()) { return; } validator.addSeenAggregate(validateableAttestation); final Bytes data = gossipEncoding.encode(validateableAttestation.getSignedAggregateAndProof()); channel.gossip(data); }
AggregateGossipManager { public void onNewAggregate(final ValidateableAttestation validateableAttestation) { if (!validateableAttestation.isAggregate() || !validateableAttestation.markGossiped()) { return; } validator.addSeenAggregate(validateableAttestation); final Bytes data = gossipEncoding.encode(validateableAttestation.getSignedAggregateAndProof()); channel.gossip(data); } }
AggregateGossipManager { public void onNewAggregate(final ValidateableAttestation validateableAttestation) { if (!validateableAttestation.isAggregate() || !validateableAttestation.markGossiped()) { return; } validator.addSeenAggregate(validateableAttestation); final Bytes data = gossipEncoding.encode(validateableAttestation.getSignedAggregateAndProof()); channel.gossip(data); } AggregateGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final SignedAggregateAndProofValidator validator,
      final GossipedOperationConsumer<ValidateableAttestation> gossipedAttestationConsumer); }
AggregateGossipManager { public void onNewAggregate(final ValidateableAttestation validateableAttestation) { if (!validateableAttestation.isAggregate() || !validateableAttestation.markGossiped()) { return; } validator.addSeenAggregate(validateableAttestation); final Bytes data = gossipEncoding.encode(validateableAttestation.getSignedAggregateAndProof()); channel.gossip(data); } AggregateGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final SignedAggregateAndProofValidator validator,
      final GossipedOperationConsumer<ValidateableAttestation> gossipedAttestationConsumer); void onNewAggregate(final ValidateableAttestation validateableAttestation); void shutdown(); }
AggregateGossipManager { public void onNewAggregate(final ValidateableAttestation validateableAttestation) { if (!validateableAttestation.isAggregate() || !validateableAttestation.markGossiped()) { return; } validator.addSeenAggregate(validateableAttestation); final Bytes data = gossipEncoding.encode(validateableAttestation.getSignedAggregateAndProof()); channel.gossip(data); } AggregateGossipManager(
      final AsyncRunner asyncRunner,
      final GossipNetwork gossipNetwork,
      final GossipEncoding gossipEncoding,
      final ForkInfo forkInfo,
      final SignedAggregateAndProofValidator validator,
      final GossipedOperationConsumer<ValidateableAttestation> gossipedAttestationConsumer); void onNewAggregate(final ValidateableAttestation validateableAttestation); void shutdown();  }