| 286 | } |
| 287 | |
| 288 | WARN_UNUSED_RESULT bool amount_sat_sub(struct amount_sat *val, |
| 289 | struct amount_sat a, |
| 290 | struct amount_sat b) |
| 291 | { |
| 292 | if (a.satoshis < b.satoshis) |
| 293 | return false; |
| 294 | |
| 295 | val->satoshis = a.satoshis - b.satoshis; |
| 296 | return true; |
| 297 | } |
| 298 | |
| 299 | WARN_UNUSED_RESULT bool amount_msat_sub_sat(struct amount_msat *val, |
| 300 | struct amount_msat a, |
no outgoing calls
no test coverage detected