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

Function wallet_datastore_remove

wallet/wallet.c:5188–5196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5186}
5187
5188void wallet_datastore_remove(struct wallet *w, const char **key)
5189{
5190 struct db_stmt *stmt;
5191
5192 stmt = db_prepare_v2(w->db, SQL("DELETE FROM datastore"
5193 " WHERE key = ?"));
5194 db_bind_datastore_key(stmt, 0, key);
5195 db_exec_prepared_v2(take(stmt));
5196}
5197
5198struct db_stmt *wallet_datastore_first(const tal_t *ctx,
5199 struct wallet *w,

Callers 1

json_deldatastoreFunction · 0.85

Calls 2

db_bind_datastore_keyFunction · 0.85
db_exec_prepared_v2Function · 0.85

Tested by

no test coverage detected