Page MenuHomePhabricator

rpc: Add listen address to incoming connections in `getpeerinfo`
ClosedPublic

Authored by deadalnix on Sep 10 2018, 17:45.

Details

Summary
  • rpc: Add listen address to incoming connections in getpeerinfo

This adds the listening address on which incoming connections were received to the
CNode and CNodeStats structures.

The address is reported in getpeerinfo.

This can be useful for distinguishing connections received on different listening ports
(e.g. when using a different listening port for Tor hidden service connections)
or different networks.

  • test: Add test for getpeerinfo bindaddr field

This is a backport of Core PR10478

Depends on D1750 and D1756

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
corepr10478
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3253
Build 4593: Bitcoin ABC Buildbot (legacy)
Build 4592: arc lint + arc unit