Commit 10bfb60
fix(pkg/p2p): purge gater blocklist on restart by using in-memory datastore
Stale blocklist entries accumulated 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.
Fixes the root cause by giving BasicConnectionGater a fresh in-memory
datastore on every startup instead of the persistent one. The blocklist
is always empty at boot; config-driven blocks (conf.BlockedPeers) are
still re-applied each run via setupBlockedPeers. This is ADR-023 Option A.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3421230 commit 10bfb60
1 file changed
Lines changed: 5 additions & 1 deletion
| 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 | | |
| |||
0 commit comments