This would be nice to solve with a scripted-diff, but it's tricky to also tackle the imports (which need to be removed in the same commit, otherwise the linter would complain).
bitcoin deleted a comment on Jul 31, 2021
DrahtBot added the label Tests on Jul 31, 2021
practicalswift
commented at 8:41 PM on July 31, 2021:
contributor
Concept ACK
Zero-1729 approved
Zero-1729
commented at 10:02 PM on July 31, 2021:
contributor
Concept and code review ACKee54626838f014efa9cc858df28e717327075565
DrahtBot
commented at 1:08 AM on August 1, 2021:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Silly question, shouldn't we also test bytes.fromhex()? Or maybe not if there's enough constants checked in other places.
MarcoFalke merged this on Aug 2, 2021
MarcoFalke closed this on Aug 2, 2021
laanwj
commented at 10:15 AM on August 2, 2021:
member
FWIW unhexlify can take str as well. There was already no need for the encode(). Though I guess using a built-in is slightly better.
MarcoFalke
commented at 10:34 AM on August 2, 2021:
member
I slightly prefer the clear bytes.fromhex name over the cryptic a2b_hex or the negation unhexlify. In any case it could make sense to remove the a2b_hex and unhexlify uses. It doesn't really make sense to use four different ways (three after this pull), sometimes even mixed within the same file, to achieve the same outcome.
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:53 UTC