mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
gossipd: add flag for locally disabling channel.
We used to just manually set ROUTING_FLAGS_DISABLED, but that means we then suppressed the real channel_update because we thought it was a duplicate! So use a local flag: set it for the channel when the peer disconnects, and clear it when channeld sends a local update. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
93cf28553d
commit
3c66d5fa03
@@ -55,6 +55,9 @@ struct chan {
|
||||
/* Index in broadcast map, if public (otherwise 0) */
|
||||
u64 channel_announcement_index;
|
||||
|
||||
/* Disabled locally (due to peer disconnect) */
|
||||
bool local_disabled;
|
||||
|
||||
u64 satoshis;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user