Remove redundant call to get_connection_by_scid(...)

This commit is contained in:
practicalswift
2018-01-02 11:14:55 +01:00
committed by Christian Decker
parent 66e7c54810
commit d340ee8abb

View File

@@ -763,7 +763,7 @@ static void handle_local_add_channel(struct peer *peer, u8 *msg)
return;
}
if (get_connection_by_scid(rstate, &scid, 0) || get_connection_by_scid(rstate, &scid, 0)) {
if (get_connection_by_scid(rstate, &scid, 0)) {
status_trace("Attempted to local_add_channel a know channel");
return;
}