fa4ce7038d rpc: Actually throw help when passed invalid number of params (MarcoFalke)
fa05626ca7 rpc: Add RPCHelpMan::IsValidNumArgs() (MarcoFalke)
Pull request description:
Can be tested by
* running the included test against an old binary (compiled without this patch)
* calling `setban 1 "add" 3 4 5 6 7 8 9 0` in the gui
Tree-SHA512: aa6a25bbe6f40722913ea292252a62a4012c964eed9f4035335a2e2d13be98eb60f368e8a3251a104a26a62c08b2cb926b06e5ab1418ef1cf4abdd71d87c2919
"\nAttempts to add or remove an IP/Subnet from the banned list.\n",
{
{"subnet",RPCArg::Type::STR,RPCArg::Optional::NO,"The IP/Subnet (see getpeerinfo for nodes IP) with an optional netmask (default is /32 = single IP)"},