| 6370 | } |
| 6371 | |
| 6372 | void wallet_datastore_save_utxo_description(struct db *db, |
| 6373 | const struct bitcoin_outpoint *outpoint, |
| 6374 | const char *desc) |
| 6375 | { |
| 6376 | const char **key = mkdatastorekey(tmpctx, |
| 6377 | "bookkeeper", "description", "utxo", |
| 6378 | take(fmt_bitcoin_outpoint(NULL, outpoint))); |
| 6379 | |
| 6380 | /* In case it's a duplicate, remove first */ |
| 6381 | db_datastore_remove(db, key); |
| 6382 | db_datastore_create(db, key, tal_dup_arr(key, u8, (u8 *)desc, strlen(desc), 0)); |
| 6383 | } |
| 6384 | |
| 6385 | void wallet_datastore_save_payment_description(struct db *db, |
| 6386 | const struct sha256 *payment_hash, |
no test coverage detected