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

Function wallet_offer_disable

wallet/wallet.c:6110–6122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6108}
6109
6110enum offer_status wallet_offer_disable(struct wallet *w,
6111 const struct sha256 *offer_id,
6112 enum offer_status s)
6113{
6114 enum offer_status newstatus;
6115
6116 assert(offer_status_active(s));
6117
6118 newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F);
6119 offer_status_update(w->db, offer_id, s, newstatus);
6120
6121 return newstatus;
6122}
6123
6124enum offer_status wallet_offer_enable(struct wallet *w,
6125 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