mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
Merge #20012: rpc: Remove duplicate name and argNames from CRPCCommand
fa04f9b4ddrpc: Remove duplicate name and argNames from CRPCCommand (MarcoFalke)fa92912b4brpc: Use RPCHelpMan for check-rpc-mappings linter (MarcoFalke)faf835680brpc: [refactor] Use concise C++11 code in CRPCConvertTable constructor (MarcoFalke) Pull request description: Currently, the RPC argument names are specified twice to simplify consistency linting. To avoid having to specify the argnames twice when adding new arguments, remove the linter and add an equivalent test based on RPCHelpMan. ACKs for top commit: laanwj: ACKfa04f9b4ddTree-SHA512: 3f5f32f5a09b22d879f24aa67031639d2612cff481d6aebc6cfe6fd757cafb3e7bf72120b30466f59292a260747b71e57322c189d5478b668519b9f32fcde31a
This commit is contained in:
@@ -33,7 +33,7 @@ static RPCHelpMan rpcNestedTest_rpc()
|
||||
}
|
||||
|
||||
static const CRPCCommand vRPCCommands[] = {
|
||||
{"test", "rpcNestedTest", &rpcNestedTest_rpc, {"arg1", "arg2", "arg3"}},
|
||||
{"test", &rpcNestedTest_rpc},
|
||||
};
|
||||
|
||||
void RPCNestedTests::rpcNestedTests()
|
||||
|
||||
Reference in New Issue
Block a user