Merge ElementsProject/elements#1559: rpc: use null for optional parameters

14a52bf188 rpc: use null for optional parameters (Ruslan Kasheparov)

Pull request description:

  Fixes: #1558

ACKs for top commit:
  tomt1664:
    Tested ACK 14a52bf188

Tree-SHA512: 161da840bb23c8573dca19b3216e1da03924d65a2ac17075e37c2fb8697994fe9a14b82ee8453f6122692409cb417c5dfe1f726fa0710458c20d207c153a124c
This commit is contained in:
merge-script 2026-07-06 13:22:18 +01:00 committed by Tom Trevethan
parent df752b810c
commit cda99dbfea
No known key found for this signature in database
11 changed files with 56 additions and 13 deletions

View file

@ -145,7 +145,7 @@ static RPCHelpMan help()
[&](const RPCHelpMan& self, const JSONRPCRequest& jsonRequest) -> UniValue
{
std::string strCommand;
if (jsonRequest.params.size() > 0) {
if (!jsonRequest.params[0].isNull()) {
strCommand = jsonRequest.params[0].get_str();
}
if (strCommand == "dump_all_command_conversions") {