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. */
| 475 | * * `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. |
| 476 | */ |
| 477 | static u32 get_timestamp(struct gossmap *gossmap, |
| 478 | const struct gossmap_chan *chan, |
| 479 | int dir) |
| 480 | { |
| 481 | u32 timestamp; |
| 482 | if (!gossmap_chan_set(chan, dir)) |
| 483 | return 0; |
| 484 | |
| 485 | gossmap_chan_get_update_details(gossmap, chan, dir, ×tamp, |
| 486 | NULL, NULL, NULL, NULL, NULL, NULL, NULL); |
| 487 | return timestamp; |
| 488 | } |
| 489 | |
| 490 | /* BOLT #7: |
| 491 | * Where: |
no test coverage detected