Page MenuHomePhabricator

RPC: getpeerinfo: Deprecate "whitelisted" field (replaced by "permissions")
ClosedPublic

Authored by PiRK on Nov 23 2021, 10:10.

Details

Summary

If we were going to continue support for "whitelisted", we should have probably made it true if any permission flag was set, rather than only if "default permissions" were used.

This corrects the description, and deprecates it.

This is a backport of core#19770

Release notes are from https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.21.0.md

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Nov 23 2021, 10:10
Fabien requested changes to this revision.Nov 23 2021, 14:08
Fabien added a subscriber: Fabien.

Please add release notes for the deprecation

This revision now requires changes to proceed.Nov 23 2021, 14:08

add release notes for the deprecation

PiRK edited the summary of this revision. (Show Details)

newline

Fabien requested changes to this revision.Nov 23 2021, 14:26
Fabien added inline comments.
src/rpc/net.cpp
200 ↗(On Diff #30943)

you're missing the \n change here

This revision now requires changes to proceed.Nov 23 2021, 14:26

include the \n change from the second commit. I wrongly assumed that this commit was only about code style, but it also changes the style of the help message.

This revision is now accepted and ready to land.Nov 24 2021, 08:31