mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 05:39:38 +02:00
Merge #16787: rpc: Human readable network services
66740f460adoc: add a release note for the new field in 'getpeerinfo' and 'getnetworkinfo' (darosior)6564f58c87rpc/net: decode the services flags in a new entry (darosior) Pull request description: This is a reopen of https://github.com/bitcoin/bitcoin/pull/15511#issuecomment-527087370 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`: ``` "services": "000000000000040d", "servicesnames": "NODE_NETWORK | NODE_BLOOM | NODE_WITNESS | NODE_NETWORK_LIMITED", "relaytxes": true, ``` And one of `getnetworkinfo`: ``` "localservices": "0000000000000409", "localservicesnames": "NODE_NETWORK | NODE_WITNESS | NODE_NETWORK_LIMITED", "localrelay": true, ``` Fixes #16780. ACKs for top commit: MarcoFalke: unsigned ACK66740f460alaanwj: ACK66740f460aTree-SHA512: 0acc37134b283f56004a41243903d7790cb01591ddf0342489bd05f3a2c780563075373ba5fd55180fa15632e8968ffa11a979b8afece75a6a2e891342601440
This commit is contained in:
3
doc/release-notes-16787.md
Normal file
3
doc/release-notes-16787.md
Normal file
@@ -0,0 +1,3 @@
|
||||
RPC changes
|
||||
-----------
|
||||
The `getnetworkinfo` and `getpeerinfo` commands now contain a new field with decoded network service flags.
|
||||
Reference in New Issue
Block a user