| 768 | } |
| 769 | |
| 770 | struct amount_sat fromwire_amount_sat(const u8 **cursor, size_t *max) |
| 771 | { |
| 772 | struct amount_sat sat; |
| 773 | |
| 774 | sat.satoshis = fromwire_u64(cursor, max); |
| 775 | return sat; |
| 776 | } |
| 777 | |
| 778 | void towire_amount_msat(u8 **pptr, const struct amount_msat msat) |
| 779 | { |