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

Function db_col_psbt

db/bindings.c:492–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492struct wally_psbt *db_col_psbt(const tal_t *ctx, struct db_stmt *stmt, const char *colname)
493{
494 struct wally_psbt *psbt;
495 size_t col = db_query_colnum(stmt, colname);
496 const u8 *src = db_column_blob(stmt, col);
497 size_t len = db_column_bytes(stmt, col);
498
499 db_column_null_warn(stmt, colname, col);
500 psbt = psbt_from_bytes(ctx, src, len);
501 psbt_set_version(psbt, 2);
502 return psbt;
503}
504
505struct bitcoin_tx *db_col_psbt_to_tx(const tal_t *ctx, struct db_stmt *stmt, const char *colname)
506{

Callers 5

wallet_stmt2inflightFunction · 0.85
wallet_stmt2channelFunction · 0.85
db_col_psbt_to_txFunction · 0.85

Calls 6

db_query_colnumFunction · 0.85
db_column_blobFunction · 0.85
db_column_bytesFunction · 0.85
db_column_null_warnFunction · 0.85
psbt_from_bytesFunction · 0.85
psbt_set_versionFunction · 0.85

Tested by

no test coverage detected