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

Function wallet_offer_enable

wallet/wallet.c:6184–6196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6182}
6183
6184enum offer_status wallet_offer_enable(struct wallet *w,
6185 const struct sha256 *offer_id,
6186 enum offer_status s)
6187{
6188 enum offer_status newstatus;
6189
6190 assert(!offer_status_active(s));
6191
6192 newstatus = offer_status_in_db(s | OFFER_STATUS_ACTIVE_F);
6193 offer_status_update(w->db, offer_id, s, newstatus);
6194
6195 return newstatus;
6196}
6197
6198void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id)
6199{

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