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

Function layer_add_update_channel

plugins/askrene/layer.c:881–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881void layer_add_update_channel(struct layer *layer,
882 const struct short_channel_id_dir *scidd,
883 const bool *enabled,
884 const struct amount_msat *htlc_min,
885 const struct amount_msat *htlc_max,
886 const struct amount_msat *base_fee,
887 const u32 *proportional_fee,
888 const u16 *delay)
889{
890 struct local_update *lu;
891
892 lu = add_update_channel(layer, scidd, enabled,
893 htlc_min, htlc_max,
894 base_fee, proportional_fee,
895 delay);
896 save_channel_update(layer, lu);
897}
898
899void layer_remove_channel_update(struct layer *layer,
900 const struct short_channel_id_dir *scidd)

Callers 4

source_free_layerFunction · 0.85
add_localchanFunction · 0.85

Calls 2

add_update_channelFunction · 0.85
save_channel_updateFunction · 0.85

Tested by

no test coverage detected