<!-- XE-16692 · [Medium] Gossipsub peer scoring disables mesh delivery/failure penalties (P3/P3b weights are 0), letting non-forwarding peers squat mesh slots · testnet -->
*Markdown view of <https://bounty.xe.network/XE-16692>. The page is the record; this is the same page for reading.*

XE-16692 · Bounty

# \[Medium\] Gossipsub peer scoring disables mesh delivery/failure penalties (P3/P3b weights are 0), letting non-forwarding peers squat mesh slots

Closed · duplicate
—claimed Medium
[xe#645](https://github.com/xeprotocol/xe/issues/645)
filed 2026-11-17 05:13 UTC
by kecedanzz77-bit

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   internally

Updated
:   2026-11-22 23:26 UTC

Told
:   2026-11-22 23:26 UTC

### Patches

None linked.

### History

- [770290](https://bounty.xe.network/log/770290) 2026-11-22 23:26 UTC reply.mirror\_failed
- [770123](https://bounty.xe.network/log/770123) 2026-11-22 23:26 UTC proposal.adopted
- [770122](https://bounty.xe.network/log/770122) 2026-11-22 23:26 UTC reply.sent
- [770121](https://bounty.xe.network/log/770121) 2026-11-22 23:26 UTC proposal.adopted
- [770120](https://bounty.xe.network/log/770120) 2026-11-22 23:26 UTC ticket.status new → closed
- [769378](https://bounty.xe.network/log/769378) 2026-11-22 23:26 UTC proposal.adopted
- [769377](https://bounty.xe.network/log/769377) 2026-11-22 23:26 UTC ticket.facts area
- [769375](https://bounty.xe.network/log/769375) 2026-11-22 23:26 UTC proposal.adopted
- [769374](https://bounty.xe.network/log/769374) 2026-11-22 23:26 UTC ticket.facts
- [769373](https://bounty.xe.network/log/769373) 2026-11-22 23:26 UTC proposal.adopted
- [769372](https://bounty.xe.network/log/769372) 2026-11-22 23:26 UTC ticket.facts
- [769371](https://bounty.xe.network/log/769371) 2026-11-22 23:26 UTC proposal.adopted

[Full history](https://bounty.xe.network/log?ref=XE-16692) · [JSON](https://bounty.xe.network/v1/tickets/XE-16692) · [markdown](https://bounty.xe.network/XE-16692.md)

### 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: 0`
- `MeshFailurePenaltyWeight/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

**Joseph Denne**team2026-11-22 23:26 UTCdesk

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.
