Rusty Russell
0ed03648f4
lightningd: minor cleanups in setchannelfee parsing.
...
1. amount operations should force you to check validity, rather than
needing a separate call, so make amount_msat_to_u32 return bool,
and WARN_UNUSED_RESULT it.
2. Create a special parsing function for this; not only does this mean
we now only need that one amount call, but also 'check' will correctly
fail with invalid amounts (it only does the parsing step).
3. If we create a primitive which we immediately take(), we allocate it
off NULL to make it clear we expect its lifetime to end here.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2019-03-16 03:02:34 +00:00
..
2019-03-15 02:48:18 +00:00
2017-10-20 18:31:32 +02:00
2019-02-21 08:01:37 +00:00
2018-09-19 13:21:21 +02:00
2019-02-21 08:01:37 +00:00
2019-01-29 04:50:01 +00:00
2019-03-15 02:48:18 +00:00
2018-08-10 12:46:45 +02:00
2018-08-23 14:46:22 +02:00
2019-03-15 02:48:18 +00:00
2019-03-15 02:48:18 +00:00
2019-02-21 08:01:37 +00:00
2018-04-26 05:47:57 +00:00
2019-01-15 12:01:38 +01:00
2018-08-09 19:44:27 +02:00
2019-02-21 08:01:37 +00:00
2018-07-25 02:13:52 +00:00
2019-02-21 08:01:37 +00:00
2019-02-21 08:01:37 +00:00
2018-09-20 09:49:39 +02:00
2018-09-20 09:49:39 +02:00
2019-02-21 08:01:37 +00:00
2019-02-21 08:01:37 +00:00
2019-02-21 08:01:37 +00:00
2018-01-16 13:03:54 +01:00
2019-02-21 00:44:57 +00:00
2019-02-21 00:44:57 +00:00
2019-02-21 08:01:37 +00:00
2019-02-21 03:44:44 +00:00
2019-02-21 03:44:44 +00:00
2019-02-21 00:44:57 +00:00
2019-02-22 03:01:37 +00:00
2019-02-18 00:17:31 +00:00
2018-07-30 11:31:17 +02:00
2018-02-07 00:46:49 +00:00
2019-02-22 03:01:37 +00:00
2018-12-20 03:22:32 +00:00
2019-02-21 03:44:44 +00:00
2019-02-07 20:33:50 +00:00
2019-02-07 20:33:50 +00:00
2019-01-17 05:42:49 +00:00
2018-12-30 14:36:02 +01:00
2019-02-22 11:15:24 -08:00
2018-04-25 14:33:38 +02:00
2019-03-15 02:48:18 +00:00
2018-11-22 05:15:42 +00:00
2019-02-18 00:17:31 +00:00
2018-11-13 00:44:50 +01:00
2019-02-23 05:45:25 +00:00
2019-01-23 22:08:08 +01:00
2019-03-16 03:02:34 +00:00
2018-11-22 05:15:42 +00:00
2019-03-15 02:48:18 +00:00
2019-02-21 08:01:37 +00:00
2018-12-20 03:22:32 +00:00
2018-09-14 22:11:23 +02:00
2019-02-21 00:44:57 +00:00
2019-01-17 05:42:49 +00:00
2019-03-06 23:27:07 +00:00
2019-02-17 21:44:10 +01:00
2018-12-10 00:00:50 +00:00
2018-12-10 00:00:50 +00:00
2018-08-21 00:48:02 +02:00
2018-08-21 00:48:02 +02:00