Skip to content

Commit

Permalink
chore: activate peer scoring for other p2p topics (#9097)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 authored Oct 9, 2024
1 parent 2dff976 commit 18d24fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions yarn-project/p2p/src/service/libp2p_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,21 @@ export class LibP2PService implements P2PService {
invalidMessageDeliveriesWeight: -20,
invalidMessageDeliveriesDecay: 0.5,
}),
[BlockAttestation.p2pTopic]: createTopicScoreParams({
topicWeight: 1,
invalidMessageDeliveriesWeight: -20,
invalidMessageDeliveriesDecay: 0.5,
}),
[BlockAttestation.p2pTopic]: createTopicScoreParams({
topicWeight: 1,
invalidMessageDeliveriesWeight: -20,
invalidMessageDeliveriesDecay: 0.5,
}),
[EpochProofQuote.p2pTopic]: createTopicScoreParams({
topicWeight: 1,
invalidMessageDeliveriesWeight: -20,
invalidMessageDeliveriesDecay: 0.5,
}),
},
}),
}) as (components: GossipSubComponents) => GossipSub,
Expand Down

0 comments on commit 18d24fb

Please sign in to comment.