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

Function append_layer_datastore

plugins/askrene/layer.c:438–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

436}
437
438static void append_layer_datastore(struct layer *layer, const u8 *data)
439{
440 struct out_req *req = jsonrpc_request_start(layer->askrene->layer_cmd,
441 "datastore",
442 ignore_result,
443 plugin_broken_cb,
444 NULL);
445 json_add_layer_key(req->js, "key", layer);
446 json_add_hex_talarr(req->js, "hex", data);
447 json_add_string(req->js, "mode", "create-or-append");
448 send_outreq(req);
449}
450
451static void towire_save_channel(u8 **data, const struct local_channel *lc)
452{

Callers 6

save_channelFunction · 0.85
save_channel_updateFunction · 0.85
save_channel_constraintFunction · 0.85
save_channel_biasFunction · 0.85
save_node_biasFunction · 0.85
save_disabled_nodeFunction · 0.85

Calls 4

json_add_layer_keyFunction · 0.85
json_add_hex_talarrFunction · 0.85
json_add_stringFunction · 0.50
send_outreqFunction · 0.50

Tested by

no test coverage detected