| 352 | } |
| 353 | |
| 354 | WARN_UNUSED_RESULT bool amount_msat_add_sat(struct amount_msat *val, |
| 355 | struct amount_msat a, |
| 356 | struct amount_sat b) |
| 357 | { |
| 358 | struct amount_msat msatb; |
| 359 | |
| 360 | if (!amount_sat_to_msat(&msatb, b)) |
| 361 | return false; |
| 362 | |
| 363 | return amount_msat_add(val, a, msatb); |
| 364 | } |
| 365 | |
| 366 | WARN_UNUSED_RESULT bool amount_msat_scale(struct amount_msat *val, |
| 367 | struct amount_msat msat, |
no test coverage detected