Page MenuHomePhabricator

[backport#19469] rpc: deprecate banscore field in getpeerinfo
ClosedPublic

Authored by majcosta on Jan 5 2021, 21:44.

Details

Summary

41d55d30579358c805036201664ad6a1c1d48681 doc: getpeerinfo banscore deprecation release note (Jon Atack)
dd54e3796e633cfdf6954af306afd26eadc25116 test: getpeerinfo banscore deprecation test (Jon Atack)
8c7647b3fbbab03ea84071cf3cd2d0d2bf8be255 rpc: deprecate banscore field in rpc getpeerinfo (Jon Atack)

Pull request description:

Per https://github.com/bitcoin/bitcoin/pull/19219#discussion_r443074487 and https://github.com/bitcoin/bitcoin/pull/19219#issuecomment-652699592, this PR deprecates returning the `banscore` field in the `getpeerinfo` RPC, updates the help, adds a test, and updates the release notes. Related to #19464.

Backport of Core PR19469

Test Plan
ninja all check
test_runner rpc_getpeerinfo_banscore_deprecation

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

majcosta requested review of this revision.Jan 5 2021, 21:44
PiRK added a subscriber: PiRK.

The code looks good to me. I don't have enough knowledge of banscore to have an opinion on the deprecation plan.

This revision is now accepted and ready to land.Jan 6 2021, 08:43