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

Function append_layer_datastore

plugins/askrene/layer.c:431–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431static void append_layer_datastore(struct layer *layer, const u8 *data)
432{
433 struct out_req *req = jsonrpc_request_start(layer->askrene->layer_cmd,
434 "datastore",
435 ignore_result,
436 plugin_broken_cb,
437 NULL);
438 json_add_layer_key(req->js, "key", layer);
439 json_add_hex_talarr(req->js, "hex", data);
440 json_add_string(req->js, "mode", "create-or-append");
441 send_outreq(req);
442}
443
444static void towire_save_channel(u8 **data, const struct local_channel *lc)
445{

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