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

Function wallet_datastore_create

wallet/wallet.c:5176–5186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5174}
5175
5176void wallet_datastore_create(struct wallet *w, const char **key, const u8 *data)
5177{
5178 struct db_stmt *stmt;
5179
5180 stmt = db_prepare_v2(w->db,
5181 SQL("INSERT INTO datastore VALUES (?, ?, 0);"));
5182
5183 db_bind_datastore_key(stmt, 0, key);
5184 db_bind_talarr(stmt, 1, data);
5185 db_exec_prepared_v2(take(stmt));
5186}
5187
5188void wallet_datastore_remove(struct wallet *w, const char **key)
5189{

Callers 1

json_datastoreFunction · 0.85

Calls 3

db_bind_datastore_keyFunction · 0.85
db_bind_talarrFunction · 0.85
db_exec_prepared_v2Function · 0.85

Tested by

no test coverage detected