Sjors
commented at 2:17 PM on January 27, 2026:
member
BIP54 proposes contraining the cointbase transaction nLockTime and nSequence fields. Our internal mining code has been doing this since #32155, but currently the fields are only communicated to IPC clients (see e.g. #33819).
This PR extends the getblocktemplate RPC to provide these fields.
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
Sjors force-pushed on Jan 27, 2026
DrahtBot added the label CI failed on Jan 27, 2026
Sjors
commented at 3:03 PM on January 27, 2026:
member
Added the coinbase nVersion.
Sjors renamed this: mining: add coinbase locktime and sequence fields to getblocktemplate RPC mining: add coinbase locktime, sequence and version fields to getblocktemplate RPC on Jan 27, 2026
DrahtBot removed the label CI failed on Jan 27, 2026
Sjors marked this as ready for review on Feb 9, 2026
mining: add coinbase locktime and sequence fields
Expand the getblocktemplate RPC result with two fields to prepare
for a possible BIP54 deployment in the future.
e3d4f3f7fe
Sjors force-pushed on Mar 4, 2026
Sjors
commented at 1:33 PM on March 4, 2026:
member
Although it's harmless to add, I also dropped it from the implementation here for clarity. It can be added in a followup.
Sjors renamed this: mining: add coinbase locktime, sequence and version fields to getblocktemplate RPC mining: add coinbase locktime and sequence fields to getblocktemplate RPC on Mar 4, 2026
DrahtBot added the label CI failed on Mar 4, 2026
DrahtBot removed the label CI failed on Mar 5, 2026
jonatack
commented at 3:09 AM on April 24, 2026:
member
Concept ACK
nervana21
commented at 7:47 AM on May 8, 2026:
contributor
tACKe3d4f3f7feff584a5b5a74d4d3e4183242972650
DrahtBot requested review from jonatack on May 8, 2026
sedited requested review from darosior on May 8, 2026
darosior
commented at 7:04 PM on May 19, 2026:
member
This implements a BIP whose stated motivation is to help miners upgrade to be BIP 54 compatible. However, as i argued before, i don't think that adding these fields achieve the stated goal. Mining pool software already has all the necessary data to set the values appropriately (as evidenced by CKpool change here, ViaBTC-ancestor change here, or more generally the BIP 54 compatibility take-up). In fact, this change would introduce an artificial reliance on upgrading to a future Bitcoin Core version for BIP 54 compatibility, which actually makes migration an order of magnitude harder than just updating two hardcoded constants in mining pool software. Therefore i don't think we should make this change. Concept NACK.
ryanofsky
commented at 9:23 PM on May 19, 2026:
contributor
@darosior would you object to this change if the references to BIP54 were removed? IIUC this PR also has non-BIP54 motivations, like making the IPC and RPC mining interfaces more consistent, and giving miners more information from the node so client code can be simpler and less error-prone.
darosior
commented at 9:32 PM on May 19, 2026:
member
I guess such an effort can be judged on its own, and would likely need to be a new PR since it would presumably overhaul both the motivation and the content of this PR. I remain skeptical that providing fields that we don't expect anybody to use is useful, but consistency between interfaces sounds good, sure.
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:52 UTC