mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 18:01:57 +01:00
routing: Fix bugs with not sending routing messages
LIGHT-138, LIGHT-141. Due to some issues in sending/receiving parts of lnd, messages with zero length are not sent. So added some mock content to NeighborAck. Moved sender/receiver from routing message to wrap message which contains lnwire routing message.
This commit is contained in:
6
peer.go
6
peer.go
@@ -19,6 +19,7 @@ import (
|
||||
"github.com/roasbeef/btcd/txscript"
|
||||
"github.com/roasbeef/btcd/wire"
|
||||
"github.com/roasbeef/btcutil"
|
||||
"github.com/BitfuryLightning/tools/rt/graph"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -385,9 +386,8 @@ out:
|
||||
*lnwire.NeighborUpdMessage,
|
||||
*lnwire.RoutingTableRequestMessage,
|
||||
*lnwire.RoutingTableTransferMessage:
|
||||
|
||||
// TODO(mkl): determine sender and receiver of message
|
||||
p.server.routingMgr.ChIn <- msg
|
||||
// Convert to base routing message and set sender and receiver
|
||||
p.server.routingMgr.ReceiveRoutingMessage(msg, graph.NewID(([32]byte)(p.lightningID)))
|
||||
}
|
||||
|
||||
if isChanUpate {
|
||||
|
||||
Reference in New Issue
Block a user