| 1460 | } |
| 1461 | |
| 1462 | bool gossmap_chan_is_dying(const struct gossmap *map, |
| 1463 | const struct gossmap_chan *c) |
| 1464 | { |
| 1465 | struct gossip_hdr ghdr; |
| 1466 | u64 off; |
| 1467 | |
| 1468 | /* FIXME: put this flag in plus_scid_off instead? */ |
| 1469 | off = c->cann_off - sizeof(ghdr); |
| 1470 | map_copy(map, off, &ghdr, sizeof(ghdr)); |
| 1471 | |
| 1472 | return ghdr.flags & CPU_TO_BE16(GOSSIP_STORE_DYING_BIT); |
| 1473 | } |
| 1474 | |
| 1475 | struct amount_msat gossmap_chan_get_capacity(const struct gossmap *map, |
| 1476 | const struct gossmap_chan *c) |
no test coverage detected