Page MenuHomePhabricator

net, rpc, test, bugfix: update GetNetworkName, GetNetworksInfo, regression tests
ClosedPublic

Authored by PiRK on Dec 22 2021, 08:43.

Details

Summary

PR description:

Following up on the BIP155 addrv2 changes, and starting with core#19845, RPC getnetworkinfo began returning networks with empty names.

This patch:

  • updates GetNetworkName() to the current Network enum
  • updates getNetworksInfo() to ignore as-yet unsupported networks
  • adds regression tests

This is a backport of core#20120

Test Plan

ninja all check-all

Diff Detail

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