Skip to content

Comments

net processing: Add ibd check before processing block for txdownloadman#175

Open
sedited wants to merge 2 commits intobitcoin-dev-tools:masterfrom
sedited:txdownloadman_ibd_check
Open

net processing: Add ibd check before processing block for txdownloadman#175
sedited wants to merge 2 commits intobitcoin-dev-tools:masterfrom
sedited:txdownloadman_ibd_check

Conversation

@sedited
Copy link
Collaborator

@sedited sedited commented Dec 14, 2025

Just thought that this might stop triggering the destructor for the blocks on the scheduler thread, so making sure this does not introduce a regression.

@github-actions
Copy link

📊 Benchmark results for this run (20207566058) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-175/20207566058/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-uninstrumented: -6.3%, mainnet-large-uninstrumented: 6.9%

@github-actions
Copy link

📊 Benchmark results for this run (20273254413) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-175/20273254413/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-uninstrumented: 5.1%, mainnet-large-uninstrumented: 4.8%

@willcl-ark willcl-ark force-pushed the master branch 3 times, most recently from 44241cc to da1434a Compare December 30, 2025 05:30
@willcl-ark willcl-ark force-pushed the master branch 6 times, most recently from 623391b to 201f2eb Compare January 6, 2026 05:32
@willcl-ark willcl-ark force-pushed the master branch 11 times, most recently from 9252506 to aa46724 Compare January 13, 2026 02:53
@willcl-ark willcl-ark force-pushed the master branch 6 times, most recently from 133f0db to 06af06f Compare January 18, 2026 03:02
@sedited sedited force-pushed the txdownloadman_ibd_check branch from 42dc172 to 62383b7 Compare January 29, 2026 11:04
@github-actions
Copy link

Benchmark Results

Comparison to nightly master:

  • 450 MB: 62 min (nightly: 64 min, 2026-01-28) → +2.6% faster
  • 32000 MB: 43 min (nightly: 45 min, 2026-01-28) → +4.2% faster

View detailed results
View nightly trend chart

@github-actions
Copy link

Benchmark Results

Comparison to nightly master:

  • 450 MB: 61 min (nightly: 64 min, 2026-01-29) → +5.2% faster
  • 32000 MB: 44 min (nightly: 45 min, 2026-01-29) → +3.5% faster

View detailed results
View nightly trend chart

@willcl-ark willcl-ark force-pushed the master branch 6 times, most recently from aee4563 to 3727c84 Compare February 6, 2026 03:27
@willcl-ark willcl-ark force-pushed the master branch 8 times, most recently from 5e53bcf to 33b60af Compare February 13, 2026 03:37
@willcl-ark willcl-ark force-pushed the master branch 5 times, most recently from 764baeb to aaf12e4 Compare February 20, 2026 03:28
l0rinc and others added 2 commits February 20, 2026 17:35
This documents existing behaviour before the change in the following
commit: The bloom filter maintained by the txdownload manager tracks
recently confirmed transasctions even during ibd. If a peer sends an INV
once IBD is over it does not re-request them.

Co-authored-by: sedited <seb.kung@gmail.com>
…downloadman

This avoids wasting work on calculating bloom filters that aren't
consumed during ibd and continuously re-calculated as now blocks get
validated.

Also update the functional test to document that transactions would now
be requested again once out of IBD.

Co-authored-by: Lőrinc <pap.lorinc@gmail.com>
@github-actions
Copy link

Benchmark Results

Comparison to nightly master:

  • 450 MB: 62 min (nightly: 62 min, 2026-02-20) → +0.4% faster
  • 32000 MB: 44 min (nightly: 46 min, 2026-02-20) → +4.3% faster

View detailed results
View nightly trend chart

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.

2 participants