Expand description

The top-level network map tracking logic lives here.

Structs

Details about a channel (both directions). Received within a channel announcement.

Details about one direction of a channel as received within a ChannelUpdate.

A wrapper around ChannelInfo representing information about the channel as directed from a source node to a target node.

Receives and validates network updates from peers, stores authentic and relevant data as a network graph. This network graph is then used for routing payments. Provides interface to help with initial routing sync by serving historical announcements.

Represents the network as nodes and channels between them

Information received in the latest node_announcement from this node.

Represents the compressed public key of a node

Details about a node in the network, known from the network announcement.

A read-only view of NetworkGraph.

Fees for routing via a given channel or a node

Enums

The effective capacity of a channel for routing purposes.

Update to the NetworkGraph based on payment failure information conveyed via the Onion return packet by a node along the route. See BOLT #4 for details.

Constants

The presumed channel capacity denominated in millisatoshi for EffectiveCapacity::Unknown to use when making routing decisions.