MCPcopy Create free account
hub / github.com/ElementsProject/lightning / wallet_datastore_save_utxo_description

Function wallet_datastore_save_utxo_description

wallet/wallet.c:6372–6383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6370}
6371
6372void 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
6385void wallet_datastore_save_payment_description(struct db *db,
6386 const struct sha256 *payment_hash,

Callers 1

migrate_from_account_dbFunction · 0.85

Calls 3

fmt_bitcoin_outpointFunction · 0.85
db_datastore_removeFunction · 0.85
db_datastore_createFunction · 0.85

Tested by

no test coverage detected