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

Function reprocess_pending_cupdates

gossipd/gossmap_manage.c:1274–1286  ·  view source on GitHub ↗

No channel_announcement now pending, so process every update which was waiting. */

Source from the content-addressed store, hash-verified

1272
1273/* No channel_announcement now pending, so process every update which was waiting. */
1274static void reprocess_pending_cupdates(struct gossmap_manage *gm)
1275{
1276 /* Grab current array and reset to empty */
1277 struct pending_cupdate **pcus = gm->pending_cupdates;
1278
1279 gm->pending_cupdates = tal_arr(gm, struct pending_cupdate *, 0);
1280
1281 /* Now we can canonically process any pending channel_updates */
1282 for (size_t i = 0; i < tal_count(pcus); i++)
1283 process_pending_cupdate(gm, pcus[i]);
1284
1285 tal_free(pcus);
1286}
1287
1288/* No channel_announcement are early, so process every update which was for those. */
1289static void reprocess_early_cupdates(struct gossmap_manage *gm)

Callers 1

reprocess_queued_msgsFunction · 0.85

Calls 2

process_pending_cupdateFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected