Rusty Russell
4146950496
lightningd: don't access htlc_in's failoutchannel on db restore.
...
failoutchannel tells us which channel to send an update for (specifically
for temporary_channel_failure); but we don't save it into the db. It's
not even clear we should, since it's a corner case and the channel might
not even exist when we come back.
So on db restore, change such errors to WIRE_TEMPORARY_NODE_FAILURE
which doesn't need an update.
We also don't memset it to 0 in the normal case (we only access if it
failcode has the UPDATE bit set) so valgrind will trigger if we're
wrong.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2018-10-09 23:17:54 +00:00
..
2018-09-28 15:03:42 +02:00
2017-10-20 18:31:32 +02:00
2018-09-27 22:57:19 +02:00
2018-09-19 13:21:21 +02:00
2018-09-27 22:57:19 +02:00
2018-09-03 05:01:40 +00:00
2018-09-27 22:57:19 +02:00
2018-08-10 12:46:45 +02:00
2018-08-23 14:46:22 +02:00
2018-09-28 15:03:42 +02:00
2018-09-28 15:03:42 +02:00
2018-08-25 00:33:12 +00:00
2018-04-26 05:47:57 +00:00
2018-09-28 04:14:28 +00:00
2018-08-09 19:44:27 +02:00
2018-09-28 18:20:17 +02:00
2018-07-25 02:13:52 +00:00
2018-10-09 08:40:52 +00:00
2018-10-09 08:40:52 +00:00
2018-09-20 09:49:39 +02:00
2018-09-20 09:49:39 +02:00
2018-10-09 23:17:54 +00:00
2018-10-09 23:17:54 +00:00
2018-09-28 15:03:42 +02:00
2018-01-16 13:03:54 +01:00
2018-09-20 02:41:28 +00:00
2018-09-03 00:40:27 +00:00
2018-07-29 16:27:38 +02:00
2018-10-09 00:08:41 +02:00
2018-09-28 15:03:42 +02:00
2018-09-27 22:57:19 +02:00
2018-09-14 22:11:23 +02:00
2018-07-30 11:31:17 +02:00
2018-02-07 00:46:49 +00:00
2018-09-14 22:12:13 +02:00
2018-08-20 01:02:25 +00:00
2018-09-20 09:49:39 +02:00
2018-09-25 15:11:45 +02:00
2018-09-20 09:49:39 +02:00
2018-04-25 14:33:38 +02:00
2018-09-20 09:49:39 +02:00
2018-08-09 19:44:27 +02:00
2018-10-09 08:40:52 +00:00
2018-05-05 17:55:10 +02:00
2018-09-27 22:57:19 +02:00
2018-09-03 00:40:27 +00:00
2018-10-09 23:17:54 +00:00
2018-07-30 03:04:45 +00:00
2018-09-03 00:40:27 +00:00
2018-02-16 13:08:29 +01:00
2018-09-28 04:14:28 +00:00
2018-09-28 04:14:28 +00:00
2018-10-09 23:17:54 +00:00
2018-09-03 05:01:40 +00:00
2018-09-14 22:11:23 +02:00
2018-09-14 22:11:23 +02:00
2018-09-20 09:49:39 +02:00
2018-09-20 09:49:39 +02:00
2018-08-21 00:48:02 +02:00
2018-08-21 00:48:02 +02:00