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

Function wallet_offer_id_next

wallet/wallet.c:6070–6079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6068}
6069
6070struct db_stmt *wallet_offer_id_next(struct wallet *w,
6071 struct db_stmt *stmt,
6072 struct sha256 *offer_id)
6073{
6074 if (!db_step(stmt))
6075 return tal_free(stmt);
6076
6077 db_col_sha256(stmt, "offer_id", offer_id);
6078 return stmt;
6079}
6080
6081/* If we make an offer inactive, this also expires all invoices
6082 * which we issued for it. */

Callers 2

wallet_offer_id_firstFunction · 0.85
json_listoffersFunction · 0.85

Calls 3

db_stepFunction · 0.85
tal_freeFunction · 0.85
db_col_sha256Function · 0.85

Tested by

no test coverage detected