| 6168 | } |
| 6169 | |
| 6170 | enum offer_status wallet_offer_disable(struct wallet *w, |
| 6171 | const struct sha256 *offer_id, |
| 6172 | enum offer_status s) |
| 6173 | { |
| 6174 | enum offer_status newstatus; |
| 6175 | |
| 6176 | assert(offer_status_active(s)); |
| 6177 | |
| 6178 | newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F); |
| 6179 | offer_status_update(w->db, offer_id, s, newstatus); |
| 6180 | |
| 6181 | return newstatus; |
| 6182 | } |
| 6183 | |
| 6184 | enum offer_status wallet_offer_enable(struct wallet *w, |
| 6185 | const struct sha256 *offer_id, |
no test coverage detected