| 264 | } |
| 265 | |
| 266 | WARN_UNUSED_RESULT bool amount_msat_sub(struct amount_msat *val, |
| 267 | struct amount_msat a, |
| 268 | struct amount_msat b) |
| 269 | { |
| 270 | if (a.millisatoshis < b.millisatoshis) |
| 271 | return false; |
| 272 | |
| 273 | val->millisatoshis = a.millisatoshis - b.millisatoshis; |
| 274 | return true; |
| 275 | } |
| 276 | |
| 277 | WARN_UNUSED_RESULT bool amount_sat_add(struct amount_sat *val, |
| 278 | struct amount_sat a, |
no outgoing calls
no test coverage detected