mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 14:11:39 +00:00
test: use ipaddress in addr_to_hex #36416
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36416
Loading…
Reference in a new issue
No description provided.
Delete branch "switch_to_ipaddress"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replace our hand-rolled IPv4/IPv6 parser, with
ipaddress.ip_address(addr).packed.hex().See https://docs.python.org/3/library/ipaddress.html.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Base:
aef8a04966d7ab6c04edc5d19b733e78205405deHead:
0cd0789c86b39ba0ae4670068d5be351cdcf92aeI found no actionable issues in this static review.
Full review report
Concept ACK
concept ACK
replacing the naive parser with
ipaddressis a clear improvement. IPv4-mappedIPv6 addresses (e.g.
::ffff:192.0.2.1) were always rejected by the oldparser
ACK
0cd0789c86tACK
0cd0789c86successfully built and ran the entire functional test suite (via the test harness) with Python
3.12.3on Linux. everything still works fine. also, the change LGTMtACK
0cd0789c86nice cleanup LGTM
I also reviewed the code changes and ran the full functional test suite (test/functional/test_runner.py) locally with Python 3.14.7 on macOS, and everything passed.