| 6159 | } |
| 6160 | |
| 6161 | enum offer_status wallet_offer_enable(struct wallet *w, |
| 6162 | const struct sha256 *offer_id, |
| 6163 | enum offer_status s) |
| 6164 | { |
| 6165 | enum offer_status newstatus; |
| 6166 | |
| 6167 | assert(!offer_status_active(s)); |
| 6168 | |
| 6169 | newstatus = offer_status_in_db(s | OFFER_STATUS_ACTIVE_F); |
| 6170 | offer_status_update(w->db, offer_id, s, newstatus); |
| 6171 | |
| 6172 | return newstatus; |
| 6173 | } |
| 6174 | |
| 6175 | void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id) |
| 6176 | { |
no test coverage detected