rgb-cln/channeld
Rusty Russell 954a3990fa gossipd: don't send a peer to master with half-written or half-read packet.
In this case, it was a gossip message half-sent, when we asked the peer
to be released.  Fix the problem in general by making send_peer_with_fds()
wait until after the next packet.

test_routing_gossip/lightning-4/log:
	b'lightning_openingd(8738): TRACE: First per_commit_point = 02e2ff759ed70c71f154695eade1983664a72546ebc552861f844bff5ea5b933bf'
	b'lightning_openingd(8738): TRACE: Failed hdr decrypt with rn=11'
	b'lightning_openingd(8738): STATUS_FAIL_PEER_IO: Reading accept_channel: Success'

test_routing_gossip/lightning-5/log:

	b'lightning_gossipd(8461): UPDATE WIRE_GOSSIP_PEER_NONGOSSIP'
	b'lightning_gossipd(8461): UPDATE WIRE_GOSSIP_PEER_NONGOSSIP'
	b'lightningd(8308): Failed to get netaddr for outgoing: Transport endpoint is not connected'

The problem occurs here on release, but could be on any place where we hand
a peer over when using ccan/io.  Note the other case (channel.c).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-10-25 18:34:35 +02:00
..
Makefile crypto_state: move to its own file. 2017-10-20 18:31:32 +02:00
channel.c gossipd: don't send a peer to master with half-written or half-read packet. 2017-10-25 18:34:35 +02:00
channel_wire.csv channeld: send channel_announce and initial update to master, not gossipd. 2017-10-24 16:12:22 +02:00
channeld_htlc.h Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
commit_tx.c Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
commit_tx.h Rename subdaemons, move them into top level. 2017-08-29 17:54:14 +02:00
full_channel.c Typo fix: CTLV -> CLTV. 2017-10-10 20:17:37 +02:00
full_channel.h channeld: don't allow NULL htlcmap for full_channel 2017-09-03 02:01:54 +02:00