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

Function db_col_channel_id

db/bindings.c:320–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void db_col_channel_id(struct db_stmt *stmt, const char *colname, struct channel_id *dest)
321{
322 size_t col = db_query_colnum(stmt, colname);
323
324 assert(db_column_bytes(stmt, col) == sizeof(dest->id));
325 memcpy(dest->id, db_column_blob(stmt, col), sizeof(dest->id));
326}
327
328void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest)
329{

Callers 1

wallet_stmt2channelFunction · 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