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

Function wallet_offer_enable

wallet/wallet.c:6161–6173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6159}
6160
6161enum offer_status wallet_offer_enable(struct wallet *w,
6162 const struct sha256 *offer_id,
6163 enum offer_status s)
6164{
6165 enum offer_status newstatus;
6166
6167 assert(!offer_status_active(s));
6168
6169 newstatus = offer_status_in_db(s | OFFER_STATUS_ACTIVE_F);
6170 offer_status_update(w->db, offer_id, s, newstatus);
6171
6172 return newstatus;
6173}
6174
6175void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id)
6176{

Callers 1

json_enableofferFunction · 0.85

Calls 3

offer_status_activeFunction · 0.85
offer_status_in_dbFunction · 0.85
offer_status_updateFunction · 0.85

Tested by

no test coverage detected