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

Function save_node_bias

plugins/askrene/layer.c:592–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592static void save_node_bias(struct layer *layer, const struct node_bias *bias)
593{
594 u8 *data;
595
596 if (!layer->persistent)
597 return;
598
599 data = tal_arr(tmpctx, u8, 0);
600 towire_save_node_bias(&data, bias);
601 append_layer_datastore(layer, data);
602}
603
604static void load_channel_bias(struct plugin *plugin,
605 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