Registry Mirror
Skip to content

Conversation

@UdjinM6

@UdjinM6 UdjinM6 commented Apr 7, 2026

Copy link
Copy Markdown

Issue being fixed or feature implemented

During reindex, the X11 block header hash was computed multiple times for the same block: once in LoadExternalBlockFile, again in AcceptBlockHeader, again in CheckBlock, and more for out-of-order blocks.

See #6610 for more info.

What was done?

Thread the already-computed hash through AcceptBlock, AcceptBlockHeader, CheckBlock, and ReadBlockFromDisk to eliminate redundant X11 computations (from 3-5 per block down to 1).

How Has This Been Tested?

Reindexed on testnet with --stopatheight=1 to confirm performance is on par with #6610. Then competed reindex on testnet with no issues. Tests are green too.

Breaking Changes

n/a

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

Loading
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.

4 participants