BOLT #7: * Where: * * `checksum_node_id_1` is the checksum of the `channel_update` for * `node_id_1`, or 0 if there was no `channel_update` from that * node. * * `checksum_node_id_2` is the checksum of the `channel_update` for * `node_id_2`, or 0 if there was no `channel_update` from that * node. */
| 461 | * node. |
| 462 | */ |
| 463 | static u32 get_checksum(struct gossmap *gossmap, |
| 464 | const struct gossmap_chan *chan, |
| 465 | int dir) |
| 466 | { |
| 467 | u8 *cupdate; |
| 468 | |
| 469 | cupdate = gossmap_chan_get_update(tmpctx, gossmap, chan, dir); |
| 470 | if (!cupdate) |
| 471 | return 0; |
| 472 | return crc32_of_update(cupdate); |
| 473 | } |
| 474 | |
| 475 | /*~ We can send multiple replies when the peer queries for all channels in |
| 476 | * a given range of blocks; each one indicates the range of blocks it covers. */ |
no test coverage detected