Skip to content

net: Provide block templates to peers on request#96

Merged
ajtowns merged 7 commits intobitcoin-inquisition:29.xfrom
ajtowns:202509-inq29-sendtemplate1
Sep 25, 2025
Merged

net: Provide block templates to peers on request#96
ajtowns merged 7 commits intobitcoin-inquisition:29.xfrom
ajtowns:202509-inq29-sendtemplate1

Conversation

@ajtowns
Copy link

@ajtowns ajtowns commented Sep 16, 2025

Backport of bitcoin#33191 (BIP153 send support)

This removes "CreateNewBlock" messages from logs by default. Also changes
"-printpriority" argument to automatically enable -debug=miner logging.
Constructing a BlockAssembler with ALLOW_OVERSIZED_BLOCKS allows oversized blocks.
When the first tx in a block is a coinbase, always prefill it. But
also support skipping prefill when the first tx is not a coinbase,
for template sharing.
Also covers functional test setup.
This adds suport for SENDTEMPLATE, GETTEMPLATE, TEMPLATE p2p messages to generate
and send block templates to our peers. It does not support requesting templates from
our peers.
@ajtowns ajtowns force-pushed the 202509-inq29-sendtemplate1 branch from ba03bc4 to 6cac244 Compare September 19, 2025 16:30
@ajtowns ajtowns merged commit 15e2afa into bitcoin-inquisition:29.x Sep 25, 2025
18 checks passed
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