[Medium] Gossipsub peer scoring disables mesh delivery/failure penalties (P3/P3b weights are 0), letting non-forwarding peers squat mesh slots
Report
Summary
topicScoreParams (net/gossip_score.go:60-68) sets the mesh-message-delivery and mesh-failure-penalty parameters to 0 for every topic. Per go-libp2p-pubsub scoring, P3 (mesh delivery deficit) and P3b (mesh failure penalty) are multiplied by these zero weights, so a mesh peer that never forwards a single message incurs zero score penalty -- while P1 (time-in-mesh) gives it a positive, growing score. Non-forwarding peers can squat mesh slots indefinitely, degrading block/vote propagation.
Root Cause
In net/gossip_score.go, topicScoreParams sets:
MeshMessageDeliveriesWeight/Decay/Cap/Threshold/Window/Activation: 0MeshFailurePenaltyWeight/Decay: 0
for all six topics (Block, Vote, StateChain, Directory, Certificate, Marketplace). Per go-libp2p-pubsub@v0.12.0/score.go:298-313, P3 and P3b are multiplied by these weights, so they contribute nothing. Meanwhile TimeInMeshWeight: 0.02 with cap 100 gives up to +2.0/topic for mere tenure, so a lazy peer's score is slightly positive and grows -- it is never pruned for non-delivery and outranks peers with small negative scores during oversubscription pruning.
Impact
- Mesh slots (D=6/topic default) can be squatted indefinitely by non-forwarding peers, degrading block/vote propagation to the slower IHAVE/IWANT gossip fallback.
- Removes gossipsub's only remedy against free-riding. This compounds XE-8346 (Sybils holding mesh slots) with a distinct root cause: the scoring config itself neuters mesh accountability.
Verification
Source-level at HEAD 8cc209d (testnet-0006). The zero weights are visible directly in net/gossip_score.go:60-68.
Suggested fix
Enable P3/P3b per gossipsub defaults (e.g. MeshMessageDeliveriesWeight: -1, threshold ~5, MeshFailurePenaltyWeight: -1).
Thread
Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, file a new report that links https://bounty.xe.network/XE-16692 and says what differs; it is read like any other.