pub const MAX_BANNED_CHIA_PEERS: usize = 256;Expand description
The maximum number of BANNED Chia peers a conforming node persists.
A ban is a row written at the request of one small control call and kept across restarts, so without a ceiling the blocklist is unbounded at-rest state a caller can grow for free. On overflow a node MUST evict its OLDEST ban rather than refuse the newest — a bounded list that forgets is recoverable, and a full one that refuses turns the ceiling into a denial of the ban facility itself.
The value is deliberately generous against the honest use (a handful of misbehaving peers) and
small against the abusive one. Banned entries are enumerable through control.chiaPeers.list
and clearable through control.chiaPeers.remove with ban: false.