mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-27 15:56:35 +01:00
This commit integrates BitFury's current routing functionality into lnd. The primary ochestration point for the routing sub-system in the routingMgr. The routingMgr manages all persistent and volatile state related to routing within the network. Newly opened channels, either when the initiator or responder are inserted into the routing table once the channel is fully open. Once new links are inserted the routingMgr can then perform path selection in order to locate an "optimal" path to a target destination.
39 lines
No EOL
847 B
Go
39 lines
No EOL
847 B
Go
// Copyright (c) 2016 Bitfury Group Limited
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file LICENSE or http://www.opensource.org/licenses/mit-license.php
|
|
|
|
package lnwire
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
type NeighborRstMessage struct {
|
|
RoutingMessageBase
|
|
}
|
|
|
|
func (msg *NeighborRstMessage) String() string {
|
|
return fmt.Sprintf("NeighborRstMessage{%v %v}", msg.SenderID, msg.ReceiverID)
|
|
}
|
|
|
|
func (msg *NeighborRstMessage) Command() uint32{
|
|
return CmdNeighborRstMessage
|
|
}
|
|
|
|
func (msg *NeighborRstMessage) Encode(w io.Writer, pver uint32) error{
|
|
return nil
|
|
}
|
|
|
|
func (msg *NeighborRstMessage) Decode(r io.Reader, pver uint32) error{
|
|
return nil
|
|
}
|
|
|
|
func (msg *NeighborRstMessage) MaxPayloadLength(uint32) uint32{
|
|
return 0
|
|
}
|
|
|
|
func (msg *NeighborRstMessage) Validate() error{
|
|
return nil
|
|
}
|
|
|
|
var _ Message = (*NeighborRstMessage)(nil) |