mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
jsonrpc: Add a category field to commands.
A new string field is added to the command structure and is specified at the creation of each native command, and in the JSON created by 'json_add_help_command()'.
This commit is contained in:
@@ -1086,9 +1086,11 @@ static struct command_result *json_fund_channel(struct command *cmd,
|
||||
}
|
||||
|
||||
static const struct json_command fund_channel_command = {
|
||||
"fundchannel", json_fund_channel,
|
||||
"Fund channel with {id} using {satoshi} (or 'all') satoshis, at optional "
|
||||
"{feerate}. Only use outputs that have {minconf} confirmations."
|
||||
"fundchannel",
|
||||
"channels",
|
||||
json_fund_channel,
|
||||
"Fund channel with {id} using {satoshi} (or 'all') satoshis, at optional "
|
||||
"{feerate}. Only use outputs that have {minconf} confirmations."
|
||||
};
|
||||
AUTODATA(json_command, &fund_channel_command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user