-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Performance & SecurityenhancementNew feature or requestNew feature or requestnetworkingP2P networkingP2P networking
Description
Goal
Make P2P safety limits tunable per network (dev/testnet/mainnet) without code changes, while keeping strict validation and safe defaults.
Context
We implemented conservative hard defaults for:
- libp2p gossipsub message caps + per-peer budgets (
crates/catalyst-network/src/service.rs) - simple TCP frame caps + per-connection budgets (
crates/catalyst-network/src/simple.rs) - relay dedup cache bounding (
RelayCacheincrates/catalyst-cli/src/node.rs)
This ticket is to move those knobs into config and validate them.
Scope
- Add config fields (with safe defaults) for:
- max gossip message bytes
- per-peer msgs/sec and bytes/sec
- max TCP frame bytes
- per-connection msgs/sec and bytes/sec
- relay cache max/target size and retention window
- Validate bounds on startup (refuse unsafe/unbounded values).
- Document recommended defaults for public testnet vs mainnet.
Acceptance criteria
- Operators can tune limits in
config.toml. - Nodes enforce configured limits deterministically.
- Invalid configs are rejected with actionable errors.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Performance & SecurityenhancementNew feature or requestNew feature or requestnetworkingP2P networkingP2P networking