# README
routing
[]
(https://travis-ci.org/lightningnetwork/lnd)
[
]
(https://github.com/lightningnetwork/lnd/blob/master/LICENSE)
[
]
(http://godoc.org/github.com/lightningnetwork/lnd/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
# Functions
DisableLog disables all library log output.
New creates a new instance of the ChannelRouter with the specified configuration parameters.
SetLogWriter uses a specified io.Writer to output package logging info.
UseLogger uses a specified Logger to output package logging info.
# Constants
HopLimit is the maximum number hops that is permissible as a route.
# Variables
ErrInsufficientCapacity is returned when a path if found, yet the capacity of one of the channels in the path is insufficient to carry the payment.
ErrMaxHopsExceeded is returned when a candidate path is found, but the length of that path exceeds HopLimit.
ErrNoPathFound is returned when a path to the target destination does not exist in the graph.
ErrTargetNotInNetwork is returned when a.
# Structs
ChannelRouter is the layer 3 router within the Lightning stack.
Config defines the configuration for the ChannelRouter.
FeeSchema is the set fee configuration for a Lighting Node on the network.
Hop represents the forwarding details at a particular position within the final route.
Route represents a path through the channel graph which runs over one or more channels in succession.
TopologyChange...
TopologyClient..