Skip to content

test: live getblocks inv, feefilter, and bloom disconnect - #502

Merged
reardencode merged 1 commit into
masterfrom
test/p2p-getblocks-bloom
Sep 13, 2026
Merged

reardencode merged 1 commit into
masterfrom
test/p2p-getblocks-bloom

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • peer.rs is still the largest production-file coverage hole after live IBD was measured (handle_peer_frame: GetBlocks serve, inbound FeeFilter, bloom). Happy-path getblocks had no test; bloom FilterLoad was only a session=None ban-score unit.
  • Extend p2p_compact_hb_getblocktxn_and_orphan (existing mature pad + live inbound): follower getblocks is answered with inv, seeder inbound records BIP133 feefilter, filterload disconnects.
  • Fold FilterLoad off bloom_disabled_messages_request_disconnect. MemPool / filteradd / filterclear and oversize locator stay units (journey does not send them). Compact wall 20s → 30s (90s under llvm-cov) because the 101-block pad already sat on the old budget.

Test plan

  • cargo test -p rbitcoin-test --test integration_multinode p2p_compact_hb_getblocktxn_and_orphan
  • cargo test -p rbitcoin-net --lib bloom_disabled_messages_request_disconnect
  • cargo test -p rbitcoin-net --lib oversize_locator_request_disconnect
  • Required PR checks green

Made with Cursor

Compact pad already has a chain and a live inbound. Pin seeder
on_getblocks (inv after locator), inbound BIP133 feefilter, and
filterload disconnect. Fold FilterLoad off the handle_peer_frame
unit; MemPool/filteradd/filterclear and oversize locator stay there.

Co-authored-by: Cursor <cursoragent@cursor.com>
@reardencode
reardencode merged commit ef23f57 into master Sep 13, 2026
16 checks passed
@rearden-grok
rearden-grok Bot deleted the test/p2p-getblocks-bloom branch September 13, 2026 20:06
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