| 321 | } |
| 322 | |
| 323 | WARN_UNUSED_RESULT bool amount_msat_add_sat(struct amount_msat *val, |
| 324 | struct amount_msat a, |
| 325 | struct amount_sat b) |
| 326 | { |
| 327 | struct amount_msat msatb; |
| 328 | |
| 329 | if (!amount_sat_to_msat(&msatb, b)) |
| 330 | return false; |
| 331 | |
| 332 | return amount_msat_add(val, a, msatb); |
| 333 | } |
| 334 | |
| 335 | WARN_UNUSED_RESULT bool amount_msat_scale(struct amount_msat *val, |
| 336 | struct amount_msat msat, |
no test coverage detected