mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 22:42:40 +02:00
This commit enhances the routing package to support namespaced mission control for payment routing. The changes include: - Added MissionControlNamespace field to LightningPayment struct to propagate namespace through the routing layer - Modified SessionSource to accept a GetMissionControl function that retrieves namespaced MissionControl instances - Updated NewPaymentSession to use the namespaced MissionControl when a custom namespace is specified in the payment These changes enable different payment types to maintain separate routing histories and success/failure statistics through mission control namespaces. Unit tests are included to verify the namespace functionality.
routing
The routing package implements authentication+validation of channel announcements, pruning of the channel graph, path finding within the network, sending outgoing payments into the network and synchronizing new peers to our channel graph state.
Installation and Updating
$ go get -u github.com/lightningnetwork/lnd/routing