Skip to content

Commit 1e15e13

Browse files
darosiorcdecker
authored andcommitted
connectd: clean up a redundant check
1 parent 9dcbf20 commit 1e15e13

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

connectd/peer_exchange_initmsg.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
7575
* - MAY fail the connection.
7676
*/
7777
if (tlvs->networks) {
78-
if (!tlvs->networks->chains) {
79-
status_peer_debug(&peer->id,
80-
"bad networks TLV in init '%s', closing",
81-
tal_hex(tmpctx, msg));
82-
return io_close(conn);
83-
}
8478
if (!contains_common_chain(tlvs->networks->chains)) {
8579
status_peer_debug(&peer->id,
8680
"No common chain with this peer '%s', closing",

0 commit comments

Comments
 (0)