BIP34 is ambiguous regarding blocks 1-16: it specifies both "minimally encoded CScript" and "first byte is number of bytes in the number" which differ for those blocks. Bitcoin Core requires minimally encoded CScript, and the existing signet and testnet4 chains have blocks complying with that interpretation. Update the BIP to clarify this.
BIP34: clarify encoding for early blocks #2342
pull ajtowns wants to merge 2 commits into bitcoin:master from ajtowns:202611-bip34-early changing 1 files +10 −0-
ajtowns commented at 5:31 PM on November 3, 2026: contributor
-
ajtowns commented at 5:53 PM on November 3, 2026: contributor
Related discussion in bitcoin PRs:
- https://github.com/bitcoin/bitcoin/pull/16333#issuecomment-511683294
- https://github.com/bitcoin/bitcoin/pull/32420#issuecomment-2869006108
BitAxe/ESP-Miner code that's incorrect for those blocks: https://github.com/bitaxeorg/ESP-Miner/blob/a591f0db0fa3de785ad7074818e63c7381ce7551/components/stratum/coinbase_decoder.c#L619-L623
ckpool patch correcting this behaviour for regtest: https://bitbucket.org/ckolivas/ckpool/commits/481f4cfe348e534d9657f85075e64f0582cae064
btcd PR updating for blocks 1-16: https://github.com/btcsuite/btcd/pull/792
rbitcoin commit correcting evaluation: https://github.com/reardencode/rbitcoin/commit/7a80175ba87c651b1704362012ffc5af7b762665
- jonatack added the label Proposed BIP modification on Nov 3, 2026
- jonatack approved
-
jonatack commented at 8:15 PM on November 3, 2026: member
ACK
-
murchandamus commented at 9:52 PM on November 3, 2026: member
Sounds reasonable. Could you please add a Changelog section, a changelog entry for this change, and the corresponding Version header?
- ajtowns force-pushed on Nov 4, 2026
- ajtowns force-pushed on Nov 4, 2026
-
ajtowns commented at 10:58 AM on November 4, 2026: contributor
Changelog/version added.
-
BIP34: Add version header and changelog section 4e3f4a95a7
-
BIP34: clarify encoding for early blocks d433c2e35d
-
in bip-0034.mediawiki:47 in 1a5b18fa3e
42 | + 43 | +* 1.0.0: 2012-07-06: proposed 44 | +* 1.0.1: 2016-02-01: updated to Final, logged activation block 45 | +* 1.0.2: 2016-02-05: correction to format prediction regarding sign bit 46 | +* 1.0.3: 2020-11-18: clarify that encoding must be minimal 47 | +* 1.0.4: 2026-11-04: clarify encoding for early blocks
murchandamus commented at 11:11 PM on November 4, 2026:Most recent version first, please.
ajtowns commented at 7:40 AM on November 5, 2026:bumped
ajtowns force-pushed on Nov 5, 2026murchandamus commented at 5:20 PM on November 5, 2026: memberACK
murchandamus merged this on Nov 5, 2026murchandamus closed this on Nov 5, 2026murchandamus removed the label Proposed BIP modification on Nov 5, 2026murchandamus added the label Fixups on Nov 5, 2026ContributorsLabels
This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-24 00:10 UTC
More mirrored repositories can be found on mirror.b10c.me