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

Function save_node_bias

plugins/askrene/layer.c:599–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599static void save_node_bias(struct layer *layer, const struct node_bias *bias)
600{
601 u8 *data;
602
603 if (!layer->persistent)
604 return;
605
606 data = tal_arr(tmpctx, u8, 0);
607 towire_save_node_bias(&data, bias);
608 append_layer_datastore(layer, data);
609}
610
611static void load_channel_bias(struct plugin *plugin,
612 struct layer *layer,

Callers 1

layer_set_node_biasFunction · 0.85

Calls 2

towire_save_node_biasFunction · 0.85
append_layer_datastoreFunction · 0.85

Tested by

no test coverage detected