mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-01 19:10:59 +02:00
multi: initial integration of routing module
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.
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
fc16159a37
commit
f8c851769f
@ -482,3 +482,12 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *rpcServer) ShowRoutingTable(ctx context.Context,
|
||||
in *lnrpc.ShowRoutingTableRequest) (*lnrpc.ShowRoutingTableResponse, error) {
|
||||
rpcsLog.Debugf("[ShowRoutingTable]")
|
||||
rtCopy := r.server.routingMgr.GetRTCopy()
|
||||
return &lnrpc.ShowRoutingTableResponse{
|
||||
Rt: rtCopy.String(),
|
||||
}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user