Page MenuHomePhabricator

deprecate softforks from getblockchaininfo RPC
ClosedPublic

Authored by PiRK on Feb 22 2023, 14:18.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC71ba268ed11b: deprecate softforks from getblockchaininfo RPC
Summary

This removes a bunch of code related to the currently empty "softforks" output of the getblockchain RPCs.
The field itself is kept (DEPRECATED) but the value will now always be empty. This only makes a difference on testnet for the testdummy deployment (which will be removed in D13158).

Depends on D13156

Test Plan

ninja all check-all

Diff Detail

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

Event Timeline

Fabien requested changes to this revision.Feb 22 2023, 16:56
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/rpc/blockchain.cpp
1771 ↗(On Diff #37996)

This should go through a deprecation cycle first. I suggest you leave it empty for this diff (that's the same as current output)

This revision now requires changes to proceed.Feb 22 2023, 16:56
PiRK retitled this revision from remove softforks from getblockchaininfo RPC to deprecate softforks from getblockchaininfo RPC.
PiRK edited the summary of this revision. (Show Details)

go through a deprecation cycle, add a release note, adjust functional test ("softforks" key is kept with -deprecatedrpc=softforks, value is now empty even on regtest).

test/functional/rpc_blockchain.py
172 ↗(On Diff #38025)

Please move this to rpc_deprecated.py so we don't keep it more than needed

move test to rpc_deprecated

undo a now unrelated style change (at some point in my iterations I added the -deprecatedrpc arg here)

This revision is now accepted and ready to land.Feb 24 2023, 15:15
This revision was automatically updated to reflect the committed changes.