| 10 | #include <wire/wire.h> |
| 11 | |
| 12 | bool amount_sat_to_msat(struct amount_msat *msat, |
| 13 | struct amount_sat sat) |
| 14 | { |
| 15 | if (mul_overflows_u64(sat.satoshis, MSAT_PER_SAT)) |
| 16 | return false; |
| 17 | msat->millisatoshis = sat.satoshis * MSAT_PER_SAT; |
| 18 | return true; |
| 19 | } |
| 20 | |
| 21 | bool amount_msat_to_sat(struct amount_sat *sat, |
| 22 | struct amount_msat msat) |
no test coverage detected