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

Function get_timestamp

connectd/queries.c:441–452  ·  view source on GitHub ↗

BOLT #7: * Where: * * `timestamp_node_id_1` is the timestamp of the `channel_update` for `node_id_1`, or 0 if there was no `channel_update` from that node. * * `timestamp_node_id_2` is the timestamp of the `channel_update` for `node_id_2`, or 0 if there was no `channel_update` from that node. */

Source from the content-addressed store, hash-verified

439 * * `timestamp_node_id_2` is the timestamp of the `channel_update` for `node_id_2`, or 0 if there was no `channel_update` from that node.
440 */
441static u32 get_timestamp(struct gossmap *gossmap,
442 const struct gossmap_chan *chan,
443 int dir)
444{
445 u32 timestamp;
446 if (!gossmap_chan_set(chan, dir))
447 return 0;
448
449 gossmap_chan_get_update_details(gossmap, chan, dir, &timestamp,
450 NULL, NULL, NULL, NULL, NULL, NULL, NULL);
451 return timestamp;
452}
453
454/* BOLT #7:
455 * Where:

Callers 1

make_reply_channel_rangeFunction · 0.70

Calls 2

gossmap_chan_setFunction · 0.85

Tested by

no test coverage detected