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

Function db_col_node_id

db/bindings.c:328–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328void db_col_node_id(struct db_stmt *stmt, const char *colname, struct node_id *dest)
329{
330 size_t col = db_query_colnum(stmt, colname);
331
332 assert(db_column_bytes(stmt, col) == sizeof(dest->k));
333 memcpy(dest->k, db_column_blob(stmt, col), sizeof(dest->k));
334}
335
336struct node_id *db_col_node_id_arr(const tal_t *ctx, struct db_stmt *stmt,
337 const char *colname)

Callers 10

migrate_last_tx_to_psbtFunction · 0.85
wallet_stmt2outputFunction · 0.85
wallet_peer_loadFunction · 0.85
wallet_stmt2paymentFunction · 0.85
wallet_sanity_checkFunction · 0.85
stmt2accountFunction · 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