Skip to content

blockchain: Always check size and merkle root. - #3782

Merged
davecgh merged 1 commit into
decred:masterfrom
davecgh:blockchain_always_check_size_and_merkleroots
Aug 26, 2026
Merged

blockchain: Always check size and merkle root.#3782
davecgh merged 1 commit into
decred:masterfrom
davecgh:blockchain_always_check_size_and_merkleroots

Conversation

@davecgh

@davecgh davecgh commented Aug 23, 2026

Copy link
Copy Markdown
Member

This modifies the assumevalid fast add path used during initial sync to also check the block size and merkle roots.

These checks are now negligible in terms of the overall sync time since the hashing has been significantly optimized and retaining them prevents certain classes of potential harassment during initial sync.

@davecgh davecgh added this to the 2.2.0 milestone Aug 23, 2026
This modifies the assumevalid fast add path used during initial sync to
also check the block size and merkle roots.

These checks are now negligible in terms of the overall sync time since
the hashing has been significantly optimized and retaining them prevents
certain classes of potential harassment during initial sync.
@davecgh
davecgh force-pushed the blockchain_always_check_size_and_merkleroots branch from 73316c2 to ead8ba7 Compare August 26, 2026 11:44
@davecgh
davecgh merged commit ead8ba7 into decred:master Aug 26, 2026
32 checks passed
@davecgh
davecgh deleted the blockchain_always_check_size_and_merkleroots branch August 26, 2026 11:48
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.

3 participants