As all hashes, txids, and weights are always computed over a reserialized version of a transaction, it is mostly harmless to permit extended encoding for non-segwit transactions, but I'd rather strictly follow the BIP.
Disallow extended encoding for non-witness transactionsbb530efa18
sipa force-pushed on Aug 24, 2018
practicalswift
commented at 9:16 AM on August 24, 2018:
contributor
Concept ACK
Stricter is better (in this case)!
instagibbs
commented at 12:50 PM on August 24, 2018:
member
concept ACK, I discovered this a few months ago, reported it, then forgot to follow up.
instagibbs
commented at 4:28 PM on August 24, 2018:
member
MarcoFalke
commented at 6:06 PM on August 24, 2018:
member
To fix the test failure you could try rebasing on fae040010deda9404b15b214cec2a099fb831253
I have no opinion on this change itself. Is there any evidence of other software using this on the p2p or rpc interface? Also note that Bitcoin Core will already normalize the transaction encoding when relaying txs.
laanwj
commented at 12:21 PM on August 29, 2018:
member
concept ACK
laanwj added the label RPC/REST/ZMQ on Aug 31, 2018
Sjors
commented at 6:22 PM on September 7, 2018:
member
Maybe add a test?
gmaxwell
commented at 8:59 PM on February 14, 2019:
contributor
utACK
instagibbs
commented at 5:06 PM on March 21, 2019:
member
instagibbs referenced this in commit aaee9dde6f on Mar 25, 2019
sdaftuar
commented at 3:53 PM on April 25, 2019:
member
utACK, I think this is ready for merge?
instagibbs
commented at 3:57 PM on April 25, 2019:
member
I can PR my test right after merge
MarcoFalke merged this on Apr 25, 2019
MarcoFalke closed this on Apr 25, 2019
MarcoFalke referenced this in commit c65c77c721 on Apr 25, 2019
MarcoFalke referenced this in commit 653b2b4426 on Apr 26, 2019
MarcoFalke added the label Needs backport on Apr 26, 2019
MarcoFalke removed the label Needs backport on Apr 26, 2019
MarcoFalke added the label Needs backport on Apr 26, 2019
MarcoFalke added this to the milestone 0.18.1 on Apr 26, 2019
sidhujag referenced this in commit fd6ff32bc6 on Apr 27, 2019
sidhujag referenced this in commit 4a65581154 on Apr 27, 2019
moneyball
commented at 8:24 PM on April 29, 2019:
contributor
Out of curiosity do we have any sense for whether such misformatted transactions occur and if so with what frequency?
sipa
commented at 8:37 PM on April 29, 2019:
member
@moneyball This is just about the encoding; it's not a properry of the transaction at all. Before this PR, If someone were to use the invalid encoding on a particular P2P link, it would still be propagated in the correct form on further links.
MarcoFalke
commented at 8:50 PM on April 29, 2019:
member
Though, it wouldn't be propagated on p2p after this pull. And also rejected by any RPC call.
laanwj referenced this in commit bb291b50f2 on May 20, 2019
MarcoFalke referenced this in commit 206f5ee875 on May 20, 2019
MarcoFalke removed the label Needs backport on May 20, 2019
sidhujag referenced this in commit 9f749c185f on May 20, 2019
HashUnlimited referenced this in commit e30fa22d54 on Aug 23, 2019
Bushstar referenced this in commit 6de72e5d3a on Aug 24, 2019
Munkybooty referenced this in commit 4df2763b77 on Oct 17, 2021
Munkybooty referenced this in commit d6cefa9ce1 on Oct 22, 2021
Munkybooty referenced this in commit c6c032be5f on Oct 22, 2021
Munkybooty referenced this in commit ca421845a7 on Oct 23, 2021
Munkybooty referenced this in commit c7e4472b83 on Oct 26, 2021
Munkybooty referenced this in commit f63e287c06 on Oct 28, 2021
Munkybooty referenced this in commit 211cf5bb25 on Oct 28, 2021
Munkybooty referenced this in commit 740f21e8a1 on Nov 12, 2021
Munkybooty referenced this in commit 466d006e5d on Nov 13, 2021
Munkybooty referenced this in commit 6a652a4a27 on Nov 13, 2021
Munkybooty referenced this in commit 1ab9ba86ef on Nov 14, 2021
Munkybooty referenced this in commit 2749dbc651 on Nov 16, 2021
Munkybooty referenced this in commit d21e550b0e on Nov 18, 2021
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-02 15:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me