Rusty Russell
d38cfcf33b
lightningd: don't assume zero-length tlv fields will be NULL.
...
1. We assumed an empty upfront_shutdown_script TLV would become NULL:
RPC call failed: method: fundchannel, payload: {'id': '022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59', 'amount': 1000000, 'announce': True}, error: {'code': -1, 'message': 'They sent error channel e7c2d5d14462fe269631418fbfc3db327843382e6a2a5a9c2991d2d6ba31d9f5: Unacceptable upfront_shutdown_script ', 'data': {'id': '022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59', 'method': 'fundchannel_start'}}"
2. We were assuming an empty enctlv would become NULL, too.
We should not have done this (there's a semantic difference between
"empty" and not-present for TLVs), so prepare for the change.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2021-07-21 13:27:27 -04:00
..
2021-07-20 13:28:38 -04:00
2020-09-09 19:54:20 +09:30
2021-07-09 07:26:09 +09:30
2020-09-09 12:38:19 +09:30
2021-07-20 13:28:38 -04:00
2021-07-09 07:26:09 +09:30
2021-07-20 13:28:38 -04:00
2021-06-25 13:23:28 +09:30
2021-01-10 13:44:04 +01:00
2021-07-20 13:28:38 -04:00
2021-07-20 13:28:38 -04:00
2021-07-14 14:39:44 -05:00
2021-06-25 13:23:28 +09:30
2020-09-09 19:54:20 +09:30
2020-05-12 15:46:58 +09:30
2021-06-03 16:16:34 +09:30
2021-03-26 13:22:33 +10:30
2021-07-20 13:28:38 -04:00
2021-06-03 16:16:34 +09:30
2021-07-20 13:28:38 -04:00
2019-09-25 04:01:56 +00:00
2021-07-20 13:28:38 -04:00
2021-07-20 13:28:38 -04:00
2021-01-06 13:50:01 +01:00
2020-06-11 13:13:13 +02:00
2021-06-05 17:47:32 +09:30
2021-06-26 10:55:13 +09:30
2021-07-14 14:38:00 -05:00
2020-09-08 09:42:00 +09:30
2021-07-14 14:38:00 -05:00
2020-09-08 09:42:00 +09:30
2019-07-24 16:16:53 +02:00
2019-05-31 17:57:10 +02:00
2021-05-22 17:53:04 +09:30
2020-08-11 08:39:24 +09:30
2021-06-05 17:47:32 +09:30
2020-10-23 13:53:16 +10:30
2021-07-14 14:38:00 -05:00
2021-07-09 07:26:09 +09:30
2020-08-25 12:53:13 +09:30
2019-11-18 04:50:22 +00:00
2021-05-05 17:19:19 -05:00
2019-11-18 04:50:22 +00:00
2021-07-20 13:28:38 -04:00
2020-09-23 13:52:49 +09:30
2019-02-07 20:33:50 +00:00
2021-05-03 11:20:15 +09:30
2021-05-03 11:20:15 +09:30
2021-07-21 13:27:27 -04:00
2021-07-20 13:28:38 -04:00
2020-08-25 12:53:13 +09:30
2021-07-21 13:27:27 -04:00
2021-01-09 14:34:35 +10:30
2021-06-25 13:23:28 +09:30
2021-06-25 13:23:28 +09:30
2021-07-20 13:28:38 -04:00
2021-06-03 16:16:34 +09:30
2021-07-15 12:13:06 -04:00
2019-11-23 22:42:34 +00:00
2021-06-16 10:29:17 +09:30
2020-05-04 18:56:33 +09:30
2021-07-20 13:28:38 -04:00
2021-07-14 14:39:44 -05:00
2021-07-20 13:28:38 -04:00
2020-09-23 15:51:13 +09:30
2020-08-25 12:53:13 +09:30
2018-09-14 22:11:23 +02:00
2021-06-25 09:49:33 +09:30
2021-06-25 09:49:33 +09:30
2021-06-05 17:47:32 +09:30
2021-06-05 17:47:32 +09:30
2021-07-15 13:26:05 -04:00
2021-07-15 13:26:05 -04:00
2021-06-16 10:29:17 +09:30
2021-06-16 10:29:17 +09:30
2021-06-16 10:29:17 +09:30
2021-04-24 13:56:58 +09:30
2021-04-24 13:56:58 +09:30
2020-01-02 16:56:42 +01:00
2019-06-28 03:31:43 +00:00