| 180 | } |
| 181 | |
| 182 | static void onchain_fee_datastore_add(struct command *cmd, |
| 183 | const struct onchain_fee *of) |
| 184 | { |
| 185 | const char **path = ds_ofee_path(tmpctx, of->acct_name); |
| 186 | u8 *data = tal_arr(tmpctx, u8, 0); |
| 187 | |
| 188 | towire_onchain_fee(&data, of); |
| 189 | jsonrpc_set_datastore_binary(cmd, path, data, tal_bytelen(data), |
| 190 | "create-or-append", |
| 191 | ignore_datastore_reply, NULL, NULL); |
| 192 | } |
| 193 | |
| 194 | void json_add_onchain_fee(struct json_stream *out, |
| 195 | const struct bkpr *bkpr, |
no test coverage detected