| 6108 | } |
| 6109 | |
| 6110 | enum offer_status wallet_offer_disable(struct wallet *w, |
| 6111 | const struct sha256 *offer_id, |
| 6112 | enum offer_status s) |
| 6113 | { |
| 6114 | enum offer_status newstatus; |
| 6115 | |
| 6116 | assert(offer_status_active(s)); |
| 6117 | |
| 6118 | newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F); |
| 6119 | offer_status_update(w->db, offer_id, s, newstatus); |
| 6120 | |
| 6121 | return newstatus; |
| 6122 | } |
| 6123 | |
| 6124 | enum offer_status wallet_offer_enable(struct wallet *w, |
| 6125 | const struct sha256 *offer_id, |
no test coverage detected