Skip to main content

Module state

Module state 

Source
Expand description

Simple implementation for the internal map state of a ChanMgr.

StructsΒ§

ChannelParams πŸ”’
Parameters for channels that we create, and that all existing channels are using
Inner πŸ”’
A map from channel id to channel state, plus necessary auxiliary state - inside lock
MgrState πŸ”’
All mutable state held by an AbstractChannelMgr.
NetParamsExtract πŸ”’
Extract from a NetParameters which we need, conveniently organized for our processing
OpenEntry πŸ”’
An open channel entry.
PendingChannelHandle πŸ”’
A handle for a pending channel.
PendingEntry πŸ”’
An entry for a not-yet-build channel
UniqPendingChanId πŸ”’
A unique ID for a pending (PendingEntry) channel.

EnumsΒ§

ChannelForTarget πŸ”’
A channel for a given target relay.
ChannelState πŸ”’
The state of a channel (or channel build attempt) within a map.

FunctionsΒ§

kist_mode_from_net_parameter πŸ”’
Build a KistMode from NetParameters.
padding_parameters πŸ”’
Given a NetDirExtract and whether we’re reducing padding, return a PaddingParameters
padding_parameters_builder πŸ”’
Given a NetDirExtract and whether we’re reducing padding, return a PaddingParametersBuilder
parameterize πŸ”’
Converts config, dormancy, and netdir, into parameter updates
remove_pending πŸ”’
Helper: remove the pending channel identified by handle from channel_map.
setup_launch πŸ”’
Helper: return the objects used to inform pending tasks about a newly open or failed channel.

Type AliasesΒ§

NfIto πŸ”’
Type of the nf_ito_* netdir parameters, convenience alias