Skip to content

Conversation

@amitiuttarwar
Copy link
Contributor

This field was previously being returned, but missing from the RPCHelpMan. This PR uses the existing NET_PERMISSIONS_DOC to inform RPC users about this field.

   "permissions" : [                 (json array) Any special permissions that have been granted to this peer
      "str",                          (string) bloomfilter (allow requesting BIP37 filtered blocks and transactions),
                                      noban (do not ban for misbehavior; implies download),
                                      forcerelay (relay transactions that are already in the mempool; implies relay),
                                      relay (relay even in -blocksonly mode, and unlimited transaction announcements),
                                      mempool (allow requesting BIP35 mempool contents),
                                      download (allow getheaders during IBD, no disconnect after maxuploadtarget limit),
                                      addr (responses to GETADDR avoid hitting the cache and contain random records with the most up-to-date info).

      ...
    ],

This field was already being returned, but the RPCHelpMan did not indicate
this. So, this PR updates the help text to match.
@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@Sjors
Copy link
Member

Sjors commented Dec 24, 2020

tACK 667d203

@maflcko
Copy link
Member

maflcko commented Dec 24, 2020

Btw, this will be caught by #20459 (step 1/2) eventually

@maflcko maflcko merged commit 02cf20b into bitcoin:master Dec 26, 2020
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Dec 26, 2020
This field was already being returned, but the RPCHelpMan did not indicate
this. So, this PR updates the help text to match.

Github-Pull: bitcoin#20756
Rebased-From: 667d203
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Dec 26, 2020
This field was already being returned, but the RPCHelpMan did not indicate
this. So, this PR updates the help text to match.

Github-Pull: bitcoin#20756
Rebased-From: 667d203
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Dec 27, 2020
…peerinfo help

667d203 [doc] Add permissions to the getpeerinfo help. (Amiti Uttarwar)

Pull request description:

  This field was previously being returned, but missing from the RPCHelpMan. This PR uses the existing `NET_PERMISSIONS_DOC` to inform RPC users about this field.

  ```
     "permissions" : [                 (json array) Any special permissions that have been granted to this peer
        "str",                          (string) bloomfilter (allow requesting BIP37 filtered blocks and transactions),
                                        noban (do not ban for misbehavior; implies download),
                                        forcerelay (relay transactions that are already in the mempool; implies relay),
                                        relay (relay even in -blocksonly mode, and unlimited transaction announcements),
                                        mempool (allow requesting BIP35 mempool contents),
                                        download (allow getheaders during IBD, no disconnect after maxuploadtarget limit),
                                        addr (responses to GETADDR avoid hitting the cache and contain random records with the most up-to-date info).

        ...
      ],

  ```

ACKs for top commit:
  Sjors:
    tACK 667d203

Tree-SHA512: 973631b41d35d6333e3cb06b35277de869110f6ad6498c7e74f00c75202e8de1788a48755c21ac964903e5e6050a5e769a63866211aec9004cd665a727a54a3c
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Jan 4, 2021
This field was already being returned, but the RPCHelpMan did not indicate
this. So, this PR updates the help text to match.

Github-Pull: bitcoin#20756
Rebased-From: 667d203
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Jan 5, 2021
This field was already being returned, but the RPCHelpMan did not indicate
this. So, this PR updates the help text to match.

Github-Pull: bitcoin#20756
Rebased-From: 667d203
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants