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

Function wallet_offer_enable

wallet/wallet.c:6124–6136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6122}
6123
6124enum offer_status wallet_offer_enable(struct wallet *w,
6125 const struct sha256 *offer_id,
6126 enum offer_status s)
6127{
6128 enum offer_status newstatus;
6129
6130 assert(!offer_status_active(s));
6131
6132 newstatus = offer_status_in_db(s | OFFER_STATUS_ACTIVE_F);
6133 offer_status_update(w->db, offer_id, s, newstatus);
6134
6135 return newstatus;
6136}
6137
6138void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id)
6139{

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