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

Function wallet_offer_id_first

wallet/wallet.c:5016–5024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5014}
5015
5016struct db_stmt *wallet_offer_id_first(struct wallet *w, struct sha256 *offer_id)
5017{
5018 struct db_stmt *stmt;
5019
5020 stmt = db_prepare_v2(w->db, SQL("SELECT offer_id FROM offers;"));
5021 db_query_prepared(stmt);
5022
5023 return wallet_offer_id_next(w, stmt, offer_id);
5024}
5025
5026struct db_stmt *wallet_offer_id_next(struct wallet *w,
5027 struct db_stmt *stmt,

Callers 1

json_listoffersFunction · 0.85

Calls 2

db_query_preparedFunction · 0.85
wallet_offer_id_nextFunction · 0.85

Tested by

no test coverage detected