Commit 0e137ca
fix(pkg/p2p): replace persistent gater with no-op gater
Stale blocklist entries in the Badger datastore were causing the
edennet-2 incident (#3267): fullnodes rejected every
binary builder peer, header sync never initialized, and nodes fell back
to DA-only sync.
Replace the persistent BasicConnectionGater with a no-op variant:
- Nil datastore → purely in-memory, nothing survives restart
- Removed from libp2p host → no connection-level filtering
- Removed setupBlockedPeers / setupAllowedPeers → nothing ever blocks
- Instance kept only to satisfy go-header's Exchange API requirement
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3421230 commit 0e137ca
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 163 | | |
170 | 164 | | |
171 | 165 | | |
| |||
340 | 334 | | |
341 | 335 | | |
342 | 336 | | |
343 | | - | |
| 337 | + | |
344 | 338 | | |
345 | 339 | | |
346 | 340 | | |
| |||
0 commit comments