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

Function wallet_offer_id_next

wallet/wallet.c:5026–5035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5024}
5025
5026struct db_stmt *wallet_offer_id_next(struct wallet *w,
5027 struct db_stmt *stmt,
5028 struct sha256 *offer_id)
5029{
5030 if (!db_step(stmt))
5031 return tal_free(stmt);
5032
5033 db_col_sha256(stmt, "offer_id", offer_id);
5034 return stmt;
5035}
5036
5037/* If we make an offer inactive, this also expires all invoices
5038 * 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