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. */
| 430 | * * `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. |
| 431 | */ |
| 432 | static u32 get_timestamp(struct gossmap *gossmap, |
| 433 | const struct gossmap_chan *chan, |
| 434 | int dir) |
| 435 | { |
| 436 | u32 timestamp; |
| 437 | if (!gossmap_chan_set(chan, dir)) |
| 438 | return 0; |
| 439 | |
| 440 | gossmap_chan_get_update_details(gossmap, chan, dir, ×tamp, |
| 441 | NULL, NULL, NULL, NULL, NULL, NULL, NULL); |
| 442 | return timestamp; |
| 443 | } |
| 444 | |
| 445 | /* BOLT #7: |
| 446 | * Where: |
no test coverage detected