This change is needed to fix the rpc_help.py
test failing in #10102: https://cirrus-ci.com/task/5469433013469184?command=ci#L2275
The CRPCTable::dumpArgMap
method currently works by casting RPC unique_id
integer field to a function pointer, and then calling it. The unique_id
field wasn’t supposed to be used this way (it’s meant to be used to detect RPC aliases) and as a result, this code segfaults in the rpc_help.py
test in multiprocess PR #10102 because wallet RPC functions aren’t directly accessible from the node process.
Fix this by adding a new GET_ARGS
RPC request mode to retrieve argument information similar to the way the GET_HELP
mode retrieves help information.
This PR is part of the process separation project.