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

Function db_col_tx

db/bindings.c:411–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411struct bitcoin_tx *db_col_tx(const tal_t *ctx, struct db_stmt *stmt, const char *colname)
412{
413 size_t col = db_query_colnum(stmt, colname);
414 const u8 *src = db_column_blob(stmt, col);
415 size_t len = db_column_bytes(stmt, col);
416
417 db_column_null_warn(stmt, colname, col);
418 return pull_bitcoin_tx(ctx, &src, &len);
419}
420
421struct wally_psbt *db_col_psbt(const tal_t *ctx, struct db_stmt *stmt, const char *colname)
422{

Callers 5

migrate_last_tx_to_psbtFunction · 0.85
wallet_transaction_getFunction · 0.85
wallet_channeltxs_getFunction · 0.85
wallet_transactions_getFunction · 0.85

Calls 5

db_query_colnumFunction · 0.85
db_column_blobFunction · 0.85
db_column_bytesFunction · 0.85
db_column_null_warnFunction · 0.85
pull_bitcoin_txFunction · 0.85

Tested by

no test coverage detected