Rusty Russell
e76a0b4ddc
gossipd: fix race where we can handoff peer with bad cryptostate.
...
DEBUG:root:lightningd(16333): 2018-02-08T02:12:21.158Z lightningd(8262): lightning_openingd(0382ce59ebf18be7d84677c2e35f23294b9992ceca95491fcf8a56c6cb2d9de199): Failed hdr decrypt with rn=2
We only hand off the peer if we've not started writing, but that was
insufficient: we increment the sn twice on encrypting packet, so there's
a window before we've actually started writing where this is now
wrong.
The simplest fix is only to hand off from master when we've just written,
and have the read-packet path simply wake the write-packet path.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2018-02-13 12:10:35 +01:00
..
2018-02-08 19:14:21 +01:00
2017-11-24 13:22:18 +01:00
2017-12-08 13:07:20 +01:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2018-01-15 19:32:00 +00:00
2018-01-29 04:46:54 +00:00
2017-08-29 17:54:14 +02:00
2017-10-11 11:54:50 +02:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00
2018-02-02 20:35:44 +01:00
2017-12-13 22:46:10 +01:00
2017-10-20 18:31:32 +02:00
2017-10-20 18:31:32 +02:00
2018-02-07 00:46:49 +00:00
2017-08-29 17:54:14 +02:00
2018-02-13 12:10:35 +01:00
2018-02-13 12:10:35 +01:00
2018-01-29 04:46:54 +00:00
2017-12-17 02:44:20 +00:00
2017-11-16 17:40:57 +01:00
2017-11-16 17:40:57 +01:00
2018-01-29 04:46:54 +00:00
2017-10-26 12:53:09 +02:00
2018-01-13 11:29:42 +01:00
2018-01-13 11:29:42 +01:00
2017-10-26 12:53:09 +02:00
2017-12-21 11:05:38 +00:00
2017-11-01 01:09:23 +00:00
2017-11-01 01:09:23 +00:00
2017-08-29 17:54:14 +02:00
2018-02-08 22:49:34 +01:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2017-08-29 17:54:14 +02:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00
2017-12-21 11:05:38 +00:00
2017-09-29 10:20:08 +09:30
2017-09-29 10:20:08 +09:30
2018-02-09 12:44:33 +01:00
2018-02-09 12:44:33 +01:00
2017-11-16 17:40:57 +01:00
2017-08-29 17:54:14 +02:00
2017-11-23 23:10:08 +01:00
2017-11-16 17:40:57 +01:00
2018-02-08 19:07:12 +01:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2018-02-08 19:07:12 +01:00
2017-09-12 23:00:53 +02:00
2018-01-15 06:35:02 +00:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2017-12-28 16:09:46 +01:00
2017-08-29 17:54:14 +02:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2018-02-07 00:46:49 +00:00
2018-01-08 18:16:39 +01:00
2017-08-29 17:54:14 +02:00
2017-08-29 17:54:14 +02:00
2017-09-28 13:07:05 +09:30
2017-12-21 11:05:38 +00:00
2017-09-29 10:20:08 +09:30
2017-09-29 10:20:08 +09:30
2018-02-08 19:07:12 +01:00
2018-02-08 19:07:12 +01:00
2017-08-29 17:54:14 +02:00
2018-01-29 03:22:27 +00:00
2017-10-22 16:24:10 +02:00
2018-01-29 04:46:54 +00:00
2018-02-08 19:14:21 +01:00
2018-02-08 19:14:21 +01:00
2017-12-21 14:33:27 +01:00
2017-12-13 03:10:04 +00:00