| 151 | } |
| 152 | |
| 153 | static void account_datastore_set(struct command *cmd, |
| 154 | const struct account *acct, |
| 155 | const char *mode) |
| 156 | { |
| 157 | const char **path = ds_path(tmpctx, acct->name); |
| 158 | u8 *data = tal_arr(tmpctx, u8, 0); |
| 159 | |
| 160 | towire_account(&data, acct); |
| 161 | jsonrpc_set_datastore_binary(cmd, path, data, tal_bytelen(data), mode, |
| 162 | ignore_datastore_reply, NULL, NULL); |
| 163 | } |
| 164 | |
| 165 | void maybe_update_account(struct command *cmd, |
| 166 | struct account *acct, |