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

Function process_pending_cupdate

gossipd/gossmap_manage.c:1250–1271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1248}
1249
1250static void process_pending_cupdate(struct gossmap_manage *gm,
1251 struct pending_cupdate *pcu)
1252{
1253 const char *err;
1254
1255 err = process_channel_update(tmpctx, gm,
1256 pcu->scid,
1257 &pcu->signature,
1258 pcu->message_flags,
1259 pcu->channel_flags,
1260 pcu->cltv_expiry_delta,
1261 pcu->htlc_minimum_msat,
1262 pcu->htlc_maximum_msat,
1263 pcu->fee_base_msat,
1264 pcu->fee_proportional_millionths,
1265 pcu->timestamp,
1266 pcu->update,
1267 pcu->source_peer);
1268 if (err)
1269 peer_warning(gm, pcu->source_peer,
1270 "channel_update: %s", err);
1271}
1272
1273/* No channel_announcement now pending, so process every update which was waiting. */
1274static void reprocess_pending_cupdates(struct gossmap_manage *gm)

Callers 2

reprocess_early_cupdatesFunction · 0.85

Calls 2

process_channel_updateFunction · 0.85
peer_warningFunction · 0.85

Tested by

no test coverage detected