mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-09 09:04:25 +01:00
Remove redundant call to get_connection_by_scid(...)
This commit is contained in:
committed by
Christian Decker
parent
66e7c54810
commit
d340ee8abb
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user