| 454 | } |
| 455 | |
| 456 | static void save_channel(struct layer *layer, const struct local_channel *lc) |
| 457 | { |
| 458 | u8 *data; |
| 459 | |
| 460 | if (!layer->persistent) |
| 461 | return; |
| 462 | |
| 463 | data = tal_arr(tmpctx, u8, 0); |
| 464 | towire_save_channel(&data, lc); |
| 465 | append_layer_datastore(layer, data); |
| 466 | } |
| 467 | |
| 468 | static void load_channel(struct plugin *plugin, |
| 469 | struct layer *layer, |
no test coverage detected