connectd: clean up a redundant check

This commit is contained in:
darosior
2019-12-25 00:35:17 +01:00
committed by Christian Decker
parent 9dcbf20a7a
commit 1e15e13de0

View File

@@ -75,12 +75,6 @@ static struct io_plan *peer_init_received(struct io_conn *conn,
* - MAY fail the connection.
*/
if (tlvs->networks) {
if (!tlvs->networks->chains) {
status_peer_debug(&peer->id,
"bad networks TLV in init '%s', closing",
tal_hex(tmpctx, msg));
return io_close(conn);
}
if (!contains_common_chain(tlvs->networks->chains)) {
status_peer_debug(&peer->id,
"No common chain with this peer '%s', closing",