| 5064 | } |
| 5065 | |
| 5066 | enum offer_status wallet_offer_disable(struct wallet *w, |
| 5067 | const struct sha256 *offer_id, |
| 5068 | enum offer_status s) |
| 5069 | { |
| 5070 | enum offer_status newstatus; |
| 5071 | |
| 5072 | assert(offer_status_active(s)); |
| 5073 | |
| 5074 | newstatus = offer_status_in_db(s & ~OFFER_STATUS_ACTIVE_F); |
| 5075 | offer_status_update(w->db, offer_id, s, newstatus); |
| 5076 | |
| 5077 | return newstatus; |
| 5078 | } |
| 5079 | |
| 5080 | void wallet_offer_mark_used(struct db *db, const struct sha256 *offer_id) |
| 5081 | { |
no test coverage detected