Browse Source
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>ppa-0.6.1
Rusty Russell
7 years ago
committed by
Christian Decker
3 changed files with 5 additions and 18 deletions
Loading…
Reference in new issue