| 6420 | } |
| 6421 | |
| 6422 | void wallet_datastore_save_payment_description(struct db *db, |
| 6423 | const struct sha256 *payment_hash, |
| 6424 | const char *desc) |
| 6425 | { |
| 6426 | const char **key = mkdatastorekey(tmpctx, |
| 6427 | "bookkeeper", "description", "payment", |
| 6428 | take(fmt_sha256(NULL, payment_hash))); |
| 6429 | |
| 6430 | /* In case it's a duplicate, remove first */ |
| 6431 | db_datastore_remove(db, key); |
| 6432 | db_datastore_create(db, key, tal_dup_arr(key, u8, (u8 *)desc, strlen(desc), 0)); |
| 6433 | } |
| 6434 | |
| 6435 | void wallet_datastore_remove(struct wallet *w, const char **key) |
| 6436 | { |
no test coverage detected