server+netann+peer: put peer's alias in Update, proper config for link
This commit modifies the netann subsystem to use the peer's alias for ChannelUpdates where appropriate (i.e. in case we are sending the alias to the peer). It also modifies the loadActiveChannels function in the peer package to handle upgrading a channel when the scid-alias feature bit is turned on.
This commit is contained in:
5 files changed
+144
-15
No files matched your search
@@ -176,7 +176,9 @@ func (g *mockGraph) FetchChannelEdgesByOutpoint(
|
||||
return info, pol1, pol2, nil
|
||||
}
|
||||
|
||||
func (g *mockGraph) ApplyChannelUpdate(update *lnwire.ChannelUpdate) error {
|
||||
func (g *mockGraph) ApplyChannelUpdate(update *lnwire.ChannelUpdate,
|
||||
op *wire.OutPoint, private bool) error {
|
||||
|
||||
g.mu.Lock()
|
||||
defer g.mu.Unlock()
|
||||
|
||||
|
||||
Reference in new issue
Block a user