bitcoin / bitcoin/bitcoin

Use compact blocks while doing background validation

Open
#33,431 2 comments 0 reactions 0 assignees View on GitHub
Feature P2P Validation
Dominant language
C++
Stars
90.2k
Forks
39.4k
Avg merge
3d 8h
Merged PRs (30d)
88

Description

We don’t use Compact Blocks while performing background validation if the `assumetxoutset` option was used.

After loading a snapshot and syncing all the way to the chain tip, Compact Blocks can be used for newly announced blocks because the mempool is already being populated even if doing background validation.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the background-validation path used after the assumetxoutset option and compare it with compact-block handling for newly announced blocks. Confirm the mempool-population condition described in the issue, then verify that compact blocks are used after the node reaches the chain tip while background validation continues.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.