| 6122 | } |
| 6123 | |
| 6124 | enum offer_status wallet_offer_enable(struct wallet *w, |
| 6125 | const struct sha256 *offer_id, |
| 6126 | enum offer_status s) |
| 6127 | { |
| 6128 | enum offer_status newstatus; |
| 6129 | |
| 6130 | assert(!offer_status_active(s)); |
| 6131 | |
| 6132 | newstatus = offer_status_in_db(s | OFFER_STATUS_ACTIVE_F); |
| 6133 | offer_status_update(w->db, offer_id, s, newstatus); |
| 6134 | |
| 6135 | return newstatus; |
| 6136 | } |
| 6137 | |
| 6138 | void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id) |
| 6139 | { |
no test coverage detected