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

Function wallet_offer_disable

wallet/wallet.c:5066–5078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5064}
5065
5066enum offer_status wallet_offer_disable(struct wallet *w,
5067 const struct sha256 *offer_id,
5068 enum offer_status s)
5069{
5070 enum offer_status newstatus;
5071
5072 assert(offer_status_active(s));
5073
5074 newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F);
5075 offer_status_update(w->db, offer_id, s, newstatus);
5076
5077 return newstatus;
5078}
5079
5080void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id)
5081{

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