| 466 | } |
| 467 | |
| 468 | static void load_channel(struct plugin *plugin, |
| 469 | struct layer *layer, |
| 470 | const u8 **cursor, |
| 471 | size_t *len) |
| 472 | { |
| 473 | struct node_id n1, n2; |
| 474 | struct short_channel_id scid; |
| 475 | struct amount_msat capacity; |
| 476 | |
| 477 | if (fromwire_dstore_channel(cursor, len, &n1, &n2, &scid, &capacity)) |
| 478 | add_local_channel(layer, &n1, &n2, scid, capacity); |
| 479 | } |
| 480 | |
| 481 | static void towire_save_channel_update(u8 **data, const struct local_update *lu) |
| 482 | { |
no test coverage detected