| 459 | } |
| 460 | |
| 461 | static void load_channel(struct plugin *plugin, |
| 462 | struct layer *layer, |
| 463 | const u8 **cursor, |
| 464 | size_t *len) |
| 465 | { |
| 466 | struct node_id n1, n2; |
| 467 | struct short_channel_id scid; |
| 468 | struct amount_msat capacity; |
| 469 | |
| 470 | if (fromwire_dstore_channel(cursor, len, &n1, &n2, &scid, &capacity)) |
| 471 | add_local_channel(layer, &n1, &n2, scid, capacity); |
| 472 | } |
| 473 | |
| 474 | static void towire_save_channel_update(u8 **data, const struct local_update *lu) |
| 475 | { |
no test coverage detected