MCPcopy Create free account
hub / github.com/ElementsProject/lightning / do_edit_desc

Function do_edit_desc

plugins/bkpr/bookkeeper.c:846–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844};
845
846static struct command_result *do_edit_desc(struct command *cmd,
847 struct edit_desc_info *info)
848{
849 struct json_stream *res;
850 struct chain_event **chain_events;
851 struct bkpr *bkpr = bkpr_of(cmd->plugin);
852
853 add_utxo_description(cmd, bkpr, info->outpoint, info->new_desc);
854 chain_events = get_chain_events_by_outpoint(cmd, bkpr, cmd, info->outpoint);
855
856 res = jsonrpc_stream_success(cmd);
857 json_array_start(res, "updated");
858 json_add_events(res, bkpr, NULL, chain_events, NULL);
859 json_array_end(res);
860
861 return command_finished(cmd, res);
862}
863
864static struct command_result *json_edit_desc_utxo(struct command *cmd,
865 const char *buf,

Callers

nothing calls this directly

Calls 8

json_array_startFunction · 0.85
json_add_eventsFunction · 0.85
json_array_endFunction · 0.85
bkpr_ofFunction · 0.70
add_utxo_descriptionFunction · 0.70
jsonrpc_stream_successFunction · 0.50
command_finishedFunction · 0.50

Tested by

no test coverage detected