Human readable localservices for getnetworkinfo #16780

issue Sjors openend this issue on September 1, 2019
  1. Sjors commented at 11:06 am on September 1, 2019: member

    Currently the getnetworkinfo returns something like:

    0"localservices": "0000000000000449",
    

    Manually parsing this consistently gives me a headache (see also https://github.com/sipa/bitcoin-seeder/pull/77).

    It would be useful to parse this and show the right combination of NODE_NETWORK, NODE_GETUTXO, NODE_BLOOM, NODE_WITNESS, NODE_NETWORK_LIMITED and NODE_COMPACT_FILTERS. In addition the help text for getnetworkinfo could be expanded to mention the right BIP numbers for known flags.

    There is some ad hoc parsing to populate e.g. localrelay, etc (?). Their help text could also refer back to NODE_GETUTXO.

    See also: https://en.bitcoin.it/wiki/Protocol_documentation#Network_address

  2. fanquake added the label P2P on Sep 1, 2019
  3. fanquake added the label RPC/REST/ZMQ on Sep 1, 2019
  4. darosior commented at 11:21 am on September 1, 2019: member
    Fwiw I did (part of) that in #15511. I could reopen since you and sdaftuar ACK the concept.
  5. laanwj closed this on Sep 10, 2019

  6. MarcoFalke locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-04 22:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me