Skip to content

refactor(wire): make BanMan single source of truth for bans#1

Closed
Micah-Shallom wants to merge 1 commit intofeat/wire-implement-banmanfrom
feat/wire-banman-addressman-sync
Closed

refactor(wire): make BanMan single source of truth for bans#1
Micah-Shallom wants to merge 1 commit intofeat/wire-implement-banmanfrom
feat/wire-banman-addressman-sync

Conversation

@Micah-Shallom
Copy link
Copy Markdown
Owner

Summary

  • Removes AddressState::Banned — BanMan is now the single source of truth for all ban state
  • rearrange_buckets now accepts &BanMan and purges banned IPs from the address database each cycle using retain()
  • conn.rs ban check remains as immediate enforcement between rearrange cycles

Builds on top of getfloresta#892.

Test plan

  • test_rearrange_buckets_purges_banned_ips — verifies banned IPs are removed from AddressMan during rearrange
  • All existing tests pass
  • Clippy clean, fmt clean

Remove AddressState::Banned and sync AddressMan from BanMan via
rearrange_buckets, which now purges banned IPs from the address
database every cycle. The conn.rs ban check remains as immediate
enforcement between cycles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant