Node
Node copied to clipboard
GH-686 Don't allow extreme rate packs; reject Gossip about extreme rate packs
[!NOTE] Enforces rate-pack limits in config and gossip, adds DB support and migration, introduces malefactor banning, and refactors neighborhood initialization with broad test updates.
- Database:
- Bump
CURRENT_SCHEMA_VERSIONto12; add migration11_to_12inserting defaultrate_pack_limits.- Initialize and persist
rate_pack_limits; update initializer and tests accordingly.- Config/Runtime:
- Add
RatePackLimitsandDEFAULT_RATE_PACK_LIMITS; validateRatePackon configuration and during gossip processing.- Extend
PersistentConfigurationto readrate_pack_limits; add factory and "invalid" placeholders.- Gossip/Neighborhood:
- Introduce
Malefactortype and switch ban path to carry structured data; handlers may return multiple results.- Validate incoming Debut/Introduction/Standard gossip against rate-pack limits; improve logging/formatting (
Displayfor records,agrs_to_string).- Refactor neighborhood start-up to use
PersistentConfigurationFactoryand constructGossipAcceptorwith limits.- Tests/Integrations:
- Update tests to new APIs, larger default
rate-packvalues, longer timeouts, and additional nodes; add new unit tests for limits and parsing.- Integration: remove existing Docker network before create.
- Misc:
- Add
timefeaturelocal-offset; minor renames/var tweaks; .gitignore adds Copilot files.Written by Cursor Bugbot for commit 45e87b67ac3da35717212899cd5a95afdeebd3ff. This will update automatically on new commits. Configure here.