| 317 | } |
| 318 | |
| 319 | WARN_UNUSED_RESULT bool amount_sat_sub(struct amount_sat *val, |
| 320 | struct amount_sat a, |
| 321 | struct amount_sat b) |
| 322 | { |
| 323 | if (a.satoshis < b.satoshis) |
| 324 | return false; |
| 325 | |
| 326 | val->satoshis = a.satoshis - b.satoshis; |
| 327 | return true; |
| 328 | } |
| 329 | |
| 330 | WARN_UNUSED_RESULT bool amount_msat_sub_sat(struct amount_msat *val, |
| 331 | struct amount_msat a, |
no outgoing calls
no test coverage detected