Expand description
Simple implementation for the internal map state of a ChanMgr.
Structs§
- Channel
Params 🔒 - 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
. - NetParams
Extract 🔒 - Extract from a
NetParameters
which we need, conveniently organized for our processing - Open
Entry 🔒 - An open channel entry.
- Pending
Channel 🔒Handle - A handle for a pending channel.
- Pending
Entry 🔒 - An entry for a not-yet-build channel
- Uniq
Pending 🔒Chan Id - A unique ID for a pending (
PendingEntry
) channel.
Enums§
- Channel
ForTarget 🔒 - A channel for a given target relay.
- Channel
State 🔒 - The state of a channel (or channel build attempt) within a map.
Functions§
- kist_
mode_ 🔒from_ net_ parameter - Build a
KistMode
fromNetParameters
. - padding_
parameters 🔒 - Given a
NetDirExtract
and whether we’re reducing padding, return aPaddingParameters
- padding_
parameters_ 🔒builder - Given a
NetDirExtract
and whether we’re reducing padding, return aPaddingParametersBuilder
- parameterize 🔒
- Converts config, dormancy, and netdir, into parameter updates
- remove_
pending 🔒 - Helper: remove the pending channel identified by
handle
fromchannel_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