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

Function db_col_channel_id

db/bindings.c:360–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void db_col_channel_id(struct db_stmt *stmt, const char *colname, struct channel_id *dest)
361{
362 size_t col = db_query_colnum(stmt, colname);
363
364 assert(db_column_bytes(stmt, col) == sizeof(dest->id));
365 memcpy(dest->id, db_column_blob(stmt, col), sizeof(dest->id));
366}
367
368void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest)
369{

Callers 6

wallet_stmt2channelFunction · 0.85
migrate_setup_coinmovesFunction · 0.85
revert_withheld_columnFunction · 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