mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
gossip: Fix "already reaching" issue
I think this is what is causing #1536: getting disconnected causes gossipd to attempt to reach the peer again, unconditionally setting the flag to tell the master. At the same time the master also issues a reaching command (which is allowed since it is its first), but then it clashes on the already set flag. Setting this flag only when the master actually needs to be told should fix this. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
40ea74ba99
commit
4279e5cdbd
@@ -3136,7 +3136,7 @@ static void try_reach_peer(struct daemon *daemon, const struct pubkey *id,
|
||||
status_failed(STATUS_FAIL_MASTER_IO,
|
||||
"Already reaching %s",
|
||||
type_to_string(tmpctx, struct pubkey, id));
|
||||
reach->master_needs_response = true;
|
||||
reach->master_needs_response = master_needs_response;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user