Skip to content

Commit

Permalink
Revert "Call deliverMessage before gossip queue (#3812)"
Browse files Browse the repository at this point in the history
This reverts commit 4b62955.
  • Loading branch information
dapplion committed Mar 1, 2022
1 parent de66f0b commit 7a19d13
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/lodestar/src/network/gossip/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,6 @@ export class Eth2Gossipsub extends Gossipsub {
*/
async validate(message: InMessage): Promise<void> {
try {
// Resolve IWANT promise before sending message to the queue. Attestations and aggregates can remain in the
// validation queue for > 1 min. Metrics show that peers are severly penalized with P7 due to broken promises,
// which they fullfil but _publish() is not called in time.
await this.gossipTracer.deliverMessage(message);

// messages must have a single topicID
const topicStr = Array.isArray(message.topicIDs) ? message.topicIDs[0] : undefined;

Expand Down

0 comments on commit 7a19d13

Please sign in to comment.