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).
MarcoFalke 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:
member
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
No conflicts as of last run.
DrahtBot added the label
Needs rebase
on Aug 1, 2021
test: refactor: remove `hex_str_to_bytes` helper
Use the built-in class method bytes.fromhex() instead,
which is available since Python 3.0.
ca6c154ef1
theStack force-pushed
on Aug 1, 2021
theStack
commented at 5:35 pm on August 1, 2021:
member
Rebased on master due to conflict after merge of #22429.
For the previous ACK (thanks Zero-1729!), it can be trivially re-reviewed via git range-diff ee5462683...ca6c154ef
DrahtBot removed the label
Needs rebase
on Aug 1, 2021
Zero-1729 approved
Zero-1729
commented at 8:09 pm on August 1, 2021:
contributor
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.
theStack deleted the branch
on Aug 2, 2021
sidhujag referenced this in commit
0ca1dd9f99
on Aug 4, 2021
MarcoFalke referenced this in commit
f4328ebef5
on Aug 5, 2021
MarcoFalke referenced this in commit
f5a406f003
on Aug 21, 2021
Fabcien referenced this in commit
f19bc27b60
on Mar 7, 2022
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: 2024-12-22 00:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me