followup of #29007 , implements adding of test-only RPC options in -test
as discussed here
Currently a general user has access to test-only
RPCs , where user might accidentally use it in production. This PR splits off test-only RPCs to be included in -test
flag with additional restrictions of use in regtest
segregating the user facing and testing RPCs . These test-only RPCs are split off from args and have their own method to extract arguments .
Current implementation of test-only RPCs follow this convention
-test=<command>=<argument>
.
The test-only rpcs with ArgsManager::DEBUG_ONLY
with OptionsCategory::DEBUG_TEST
options have been added.
Additional info
Two more test-only arguments -checkpoints
and -deprecatedrpc=<method>
are excluded from this PR because of the requirement of their tests to be run on either testnet
or testnet3
.