HomePhabricator

Return mapped AS in RPC call getpeerinfo

Description

Return mapped AS in RPC call getpeerinfo

Summary:

If ASN bucketing is used, return a corresponding AS
used in bucketing for a given peer.

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

Depends on D8195.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
Gleb Naumenko <naumenko.gs@gmail.com>Authored on Dec 24 2019, 18:26
FabienCommitted on Oct 30 2020, 19:20
FabienPushed on Oct 30 2020, 19:20
Reviewer
Restricted Project
Differential Revision
D8196: Return mapped AS in RPC call getpeerinfo
Parents
rABC1e6e4031d320: [gui] do not enable pruning by default
Branches
Unknown
Tags
Unknown