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

Function gossmap_local_setchan

common/gossmap.c:1201–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199}
1200
1201bool gossmap_local_setchan(struct gossmap_localmods *localmods,
1202 struct short_channel_id scid,
1203 struct amount_msat htlc_min,
1204 struct amount_msat htlc_max,
1205 struct amount_msat base_fee,
1206 u32 proportional_fee,
1207 u16 delay,
1208 bool enabled,
1209 int dir)
1210{
1211 struct short_channel_id_dir scidd = {scid, dir};
1212 return gossmap_local_updatechan(localmods, &scidd,
1213 &enabled,
1214 &htlc_min, &htlc_max,
1215 &base_fee, &proportional_fee,
1216 &delay);
1217}
1218
1219/* Apply localmods to this map */
1220void gossmap_apply_localmods(struct gossmap *map,

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

gossmap_local_updatechanFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68