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

Function get_timestamp

gossipd/gossmap_manage.c:383–396  ·  view source on GitHub ↗

If we don't know, we assume it's good */

Source from the content-addressed store, hash-verified

381
382/* If we don't know, we assume it's good */
383static u32 get_timestamp(struct gossmap *gossmap,
384 const struct gossmap_chan *chan,
385 int dir)
386{
387 u32 timestamp;
388
389 if (!gossmap_chan_set(chan, dir))
390 return UINT32_MAX;
391
392 gossmap_chan_get_update_details(gossmap, chan, dir,
393 &timestamp,
394 NULL, NULL, NULL, NULL, NULL, NULL, NULL);
395 return timestamp;
396}
397
398static bool channel_already_dying(const struct chan_dying dying_channels[],
399 struct short_channel_id scid)

Callers 1

prune_networkFunction · 0.70

Calls 2

gossmap_chan_setFunction · 0.85

Tested by

no test coverage detected