This is a reopen of #15511 (comment) since there have been concept ACKs from sdaftuar and Sjors.
This adds a new entry to getpeerinfo
and getnetworkinfo
which decodes the network services flags.
Here is a truncated output of getpeerinfo
:
0"services": "000000000000040d",
1"servicesnames": "NETWORK | BLOOM | WITNESS | NETWORK_LIMITED",
2"relaytxes": true,
And one of getnetworkinfo
:
0"localservices": "0000000000000409",
1"localservicesnames": "NETWORK | WITNESS | NETWORK_LIMITED",
2"localrelay": true,
Fixes #16780.