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

Function db_col_node_id

db/bindings.c:368–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest)
369{
370 size_t col = db_query_colnum(stmt, colname);
371
372 assert(db_column_bytes(stmt, col) == sizeof(dest->k));
373 memcpy(dest->k, db_column_blob(stmt, col), sizeof(dest->k));
374}
375
376/* We don't assume sizeof(struct node_id) == sizeof(struct node_id.k),
377 * otherwise this would simply be a call to db_col_arr!

Callers 11

stmt2chain_eventFunction · 0.85
migrate_last_tx_to_psbtFunction · 0.85
wallet_stmt2outputFunction · 0.85
wallet_peer_loadFunction · 0.85
wallet_sanity_checkFunction · 0.85
migrate_setup_coinmovesFunction · 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