Page MenuHomePhabricator

remove dead rpc code
ClosedPublic

Authored by PiRK on Dec 23 2021, 16:57.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCe74ec8b0f2fa: remove dead rpc code
Summary

Checking for fHelp, or the size of the args, is dead code because:

  • fHelp is always false (src/qt/test/rpcnestedtests.cpp)
  • It is already implicitly called by RPCHelpMan::Check (src/rpc/mining.cpp, src/rpc/misc.cpp, src/rpc/net.cpp)

This is a backport of core#18531 [1/2]
https://github.com/bitcoin/bitcoin/pull/18531/commits/fa19bb2cd8c575593583138a84e6bb3444d6196d

I confirmed with a grep that fHelp is not used in any other RPC command.

Depends on D10742

Test Plan

ninja all check-all

Diff Detail

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