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
NetParameterswhich 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
KistModefromNetParameters. - padding_
parameters π - Given a
NetDirExtractand whether weβre reducing padding, return aPaddingParameters - padding_
parameters_ πbuilder - Given a
NetDirExtractand 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
handlefromchannel_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