| 436 | } |
| 437 | |
| 438 | static void append_layer_datastore(struct layer *layer, const u8 *data) |
| 439 | { |
| 440 | struct out_req *req = jsonrpc_request_start(layer->askrene->layer_cmd, |
| 441 | "datastore", |
| 442 | ignore_result, |
| 443 | plugin_broken_cb, |
| 444 | NULL); |
| 445 | json_add_layer_key(req->js, "key", layer); |
| 446 | json_add_hex_talarr(req->js, "hex", data); |
| 447 | json_add_string(req->js, "mode", "create-or-append"); |
| 448 | send_outreq(req); |
| 449 | } |
| 450 | |
| 451 | static void towire_save_channel(u8 **data, const struct local_channel *lc) |
| 452 | { |
no test coverage detected