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

Function db_col_preimage

db/bindings.c:309–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void db_col_preimage(struct db_stmt *stmt, const char *colname,
310 struct preimage *preimage)
311{
312 size_t col = db_query_colnum(stmt, colname);
313 const u8 *raw;
314 size_t size = sizeof(struct preimage);
315 assert(db_column_bytes(stmt, col) == size);
316 raw = db_column_blob(stmt, col);
317 memcpy(preimage, raw, size);
318}
319
320void db_col_channel_id(struct db_stmt *stmt, const char *colname, struct channel_id *dest)
321{

Callers 4

wallet_stmt2htlc_inFunction · 0.85
wallet_stmt2htlc_outFunction · 0.85
wallet_stmt2paymentFunction · 0.85

Calls 3

db_query_colnumFunction · 0.85
db_column_bytesFunction · 0.85
db_column_blobFunction · 0.85

Tested by

no test coverage detected