← Back to Bitcoin Improvement Proposals
BIPinformational

BIP34 encoding clarification

Non minimal encodings are rejected by the bitcoin-core client because it only checks against a specific encoding. Link for reference: https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L3503 For example: Height 16512 has two encodings which should be valid according to the spec. 03804000 and 028040. However, the prior would always be rejected due to the implementation of the BIP34 height check.

No reviews
Greg-Griffith·Updated Feb 4, 2021·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

Non minimal encodings are rejected by the bitcoin-core client because it only checks against a specific encoding. Link for reference: https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L3503

For example: Height 16512 has two encodings which should be valid according to the spec. 03804000 and 028040. However, the prior would always be rejected due to the implementation of the BIP34 height check.

Discussion (0 threads)

Loading discussions...