Send Init message immediately after handshake even if not initiator
authorDevrandom <c1.devrandom@niftybox.net>
Wed, 28 Apr 2021 13:22:34 +0000 (15:22 +0200)
committerDevrandom <c1.devrandom@niftybox.net>
Wed, 28 Apr 2021 13:22:34 +0000 (15:22 +0200)
commit7113dbd90498d61d3d0c44a05ab010c0fa42231c
treee1a045073e69e5a09683bf83d146cd4a5250c3b8
parentaffefb677e3f9f1a586707484ac82b6c86f4f26b
Send Init message immediately after handshake even if not initiator

We were waiting for the initiator, but the spec doesn't guarantee that they will send Init first, so we might theoretically wait forever.

Also, lnprototest expects this behavior.
lightning/src/ln/peer_handler.rs