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

Function db_datastore_update

wallet/datastore.c:167–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void db_datastore_update(struct db *db, const char **key, const u8 *data)
168{
169 struct db_stmt *stmt;
170
171 stmt = db_prepare_v2(db,
172 SQL("UPDATE datastore SET data=?, generation=generation+1 WHERE key=?;"));
173 db_bind_talarr(stmt, data);
174 db_bind_datastore_key(stmt, key);
175 db_exec_prepared_v2(take(stmt));
176}
177

Callers 2

wallet_datastore_updateFunction · 0.70
downgrade_askrene_layersFunction · 0.50

Calls 3

db_bind_talarrFunction · 0.85
db_exec_prepared_v2Function · 0.85
db_bind_datastore_keyFunction · 0.70

Tested by

no test coverage detected