| 6182 | } |
| 6183 | |
| 6184 | enum 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 | |
| 6198 | void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id) |
| 6199 | { |
no test coverage detected