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

Function do_edit_desc

plugins/bkpr/bookkeeper.c:870–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868};
869
870static struct command_result *do_edit_desc(struct command *cmd,
871 struct edit_desc_info *info)
872{
873 struct json_stream *res;
874 struct chain_event **chain_events;
875 struct bkpr *bkpr = bkpr_of(cmd->plugin);
876
877 add_utxo_description(cmd, bkpr, info->outpoint, info->new_desc);
878 chain_events = get_chain_events_by_outpoint(cmd, bkpr, cmd, info->outpoint);
879
880 res = jsonrpc_stream_success(cmd);
881 json_array_start(res, "updated");
882 json_add_events(res, bkpr, NULL, chain_events, NULL);
883 json_array_end(res);
884
885 return command_finished(cmd, res);
886}
887
888static struct command_result *json_edit_desc_utxo(struct command *cmd,
889 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