Page MenuHomePhabricator

Integrate ASN bucketing in Addrman and add tests
ClosedPublic

Authored by Fabien on Oct 30 2020, 14:25.

Details

Reviewers
jasonbcox
Group Reviewers
Restricted Project
Commits
rABCff7f19b6fce1: Integrate ASN bucketing in Addrman and add tests
Summary
Instead of using /16 netgroups to bucket nodes in Addrman for connection
diversification, ASN, which better represents an actor in terms
of network-layer infrastructure, is used.
For testing, asmap.raw is used. It represents a minimal
asmap needed for testing purposes.

Partial backport 2/4 of core PR16702:
https://github.com/bitcoin/bitcoin/pull/16702/commits/ec45646de9e62b3d42c85716bfeb06d8f2b507dc

Depends on D8194.

Test Plan
ninja check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Oct 30 2020, 14:25
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/test/data/generate_asmap.py
22 ↗(On Diff #25272)

Sorry to bust the easter egg, but this isn't very informative. lol

This revision is now accepted and ready to land.Oct 30 2020, 16:43
This revision was landed with ongoing or failed builds.Oct 30 2020, 19:20
This revision was automatically updated to reflect the committed changes.