Skip to content

Conversation

@Sjors
Copy link
Collaborator

@Sjors Sjors commented Nov 7, 2025

Take advantage of the new getCoinbase() introduced in bitcoin/bitcoin#33819 which provides a CoinbaseTemplate struct.

This lets us avoid parsing Bitcoin Core's dummy transaction. For backwards compatibility the ExtractCoinbaseTemplate still does that. This can be dropped after a Bitcoin Core release ships with the new method.

Builds on:

@Sjors Sjors marked this pull request as draft November 7, 2025 17:07
This prevents repeating calls to getBlockHeader()
Avoid the brittle process of constructing the template
coinbase fields from Bitcoin Core's dummy coinbase transaction.

This uses the new getCoinbase() interface method. Fall back to the
old approach if that method is not available.
@Sjors
Copy link
Collaborator Author

Sjors commented Nov 11, 2025

Rebased after #57 and bumped getCoinbase to @12.

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