mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +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:
parent
40ea74ba99
commit
4279e5cdbd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue