Skip to content

ibd: chill relative-slow disconnects - #309

Merged
reardencode merged 1 commit into
masterfrom
ibd/relslow-chill
Aug 30, 2026
Merged

ibd: chill relative-slow disconnects#309
reardencode merged 1 commit into
masterfrom
ibd/relslow-chill

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Follow-up to ibd: unified peer byte-rate EWMA #308: mainnet was peeling home-speed peers because Gate A used max/min (one ~20 MB/s peer opened the gate) and two-tick hysteresis ran at IBD loop rate (~ms).
  • Gate A is median/min ≤ 2 (bulk, not the whale). Gate B is quarter-median (bps × 4 ≤ median). Same peer must fail for 2s wall-clock; at most one relative-slow kick per 5s. bps == 0 is stall, not relative-slow.

Test plan

  • cargo test -p rbitcoin-net --lib relative_slow
  • cargo test -p rbitcoin-net --lib cover_tip_holes_drops_relative
  • cargo clippy -p rbitcoin-net --lib --all-targets -- -D warnings
  • Required CI: fmt, deny, clippy, ast-grep, test, windows, macos, multinode, coverage

Made with Cursor

Gate A is median/min so one fast peer does not peel the pack. Gate B is
quarter-median. Hysteresis is 2s wall plus a 5s kick gap. Zero bps is
stall, not relative-slow.

Co-authored-by: Cursor <cursoragent@cursor.com>
@reardencode
reardencode merged commit 252a95c into master Aug 30, 2026
13 checks passed
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