HomePhabricator

Fix some asmap issues

Description

Fix some asmap issues

Summary:

Here are a few things to improve in the asmap implementation. The first
two commits are just code improvements. The last one is a bugfix (the
exsting code wouldn't correctly apply ASN lookups to mapped/embedded
IPv4 addresses).

Backport of core PR18023.

Depends on D8197.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D8198

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Jan 29 2020, 21:55
FabienCommitted on Oct 30 2020, 19:23
FabienPushed on Oct 30 2020, 19:23
Reviewer
Restricted Project
Differential Revision
D8198: Fix some asmap issues
Parents
rABCe98b0bdb1801: Add extra logging of asmap use and bucketing
Branches
Unknown
Tags
Unknown