gossipd: Fix copy-paste error when adding a channel locally

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-01-02 13:25:04 +01:00
parent d340ee8abb
commit 202868b677

View file

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