Use RPCHelpMan for most RPCs
This is a partial cherry-pick of PR14726.
Some of the more difficult conflicts were skipped. Help strings for RPC calls unique to BCHN have not been converted.
I kept the Core syntax styling, as 1) it will make it easier to port additional improvements to RPCHelpMan, and 2) the style inherited from previous project didn't reformat help text properly, but rather just chopped strings at 80 chars, making a big mess.
Remaining methods can be incrementally converted. The task conversion task is very well defined, so perhaps using bounties?
Test plan
Observe that the help output is not changed for the worse. There are some improvements.
- Revert this change and build bitcoind (
ninja bitcoind
) - Run
./gen-manpages.sh
fromcontrib/devtools
- Commit documentation changes
git stage -u && git commit -m test
. This is the RPC documentation before the patch. - Revert the revert (step 1) and build bitcoind
- Run
./gen-manpages.sh
fromcontrib/devtools
- Run
git diff
to observe there are no changes
My diff is posted in a comment in this MR.
Edited by Dagur Valberg Johannsson