| 295 | } |
| 296 | |
| 297 | WARN_UNUSED_RESULT bool amount_msat_sub(struct amount_msat *val, |
| 298 | struct amount_msat a, |
| 299 | struct amount_msat b) |
| 300 | { |
| 301 | if (a.millisatoshis < b.millisatoshis) |
| 302 | return false; |
| 303 | |
| 304 | val->millisatoshis = a.millisatoshis - b.millisatoshis; |
| 305 | return true; |
| 306 | } |
| 307 | |
| 308 | WARN_UNUSED_RESULT bool amount_sat_add(struct amount_sat *val, |
| 309 | struct amount_sat a, |
no outgoing calls