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

Function wallet_offer_disable

wallet/wallet.c:6170–6182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6168}
6169
6170enum offer_status wallet_offer_disable(struct wallet *w,
6171 const struct sha256 *offer_id,
6172 enum offer_status s)
6173{
6174 enum offer_status newstatus;
6175
6176 assert(offer_status_active(s));
6177
6178 newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F);
6179 offer_status_update(w->db, offer_id, s, newstatus);
6180
6181 return newstatus;
6182}
6183
6184enum offer_status wallet_offer_enable(struct wallet *w,
6185 const struct sha256 *offer_id,

Callers 1

json_disableofferFunction · 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