mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
gossip: Avoid sending duplicate disable messages
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
8e278044e3
commit
ba31dd2d9d
@ -2394,6 +2394,11 @@ static void gossip_disable_channel(struct routing_state *rstate, struct chan *ch
|
||||
"Unable to parse previously accepted channel_update");
|
||||
}
|
||||
|
||||
/* Avoid sending gratuitous disable messages, e.g., on close and
|
||||
* subsequent disconnect */
|
||||
if (flags & ROUTING_FLAGS_DISABLED)
|
||||
return;
|
||||
|
||||
status_trace("Disabling channel %s", type_to_string(tmpctx, struct short_channel_id, &scid));
|
||||
|
||||
timestamp = time_now().ts.tv_sec;
|
||||
|
Loading…
Reference in New Issue
Block a user