Files
lightning/common
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
..
2017-11-24 13:22:18 +01:00
2017-12-08 13:07:20 +01:00
2018-01-29 04:46:54 +00:00
2018-01-29 04:46:54 +00:00
2018-01-29 04:46:54 +00:00
2018-02-08 22:49:34 +01:00
2018-02-09 12:44:33 +01:00
2018-02-09 12:44:33 +01:00
2017-11-23 23:10:08 +01:00
2017-11-16 17:40:57 +01:00
2017-12-20 12:43:10 +01:00
2017-12-20 12:43:10 +01:00
2018-01-29 04:46:54 +00:00