Adds InboundChannelsConfig
configuration
#594
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes partially #502
Context
When running a personal or business node would like to control how peers request channels either blocking all possible channels, announced channels or some channels given a minimum.
This is useful as operator to take care of how liquidity moves. Even more, if we acquired a channel LSP for specific reasons and don't want that liquidity to move.
Other example is when running a operative node (i.e, exchange / wallet) don't want to be full of tiny channels that could affect route finding.
Solution
Added a
InboundChannelsConfig
configuration onconfig.rs
with two parameters to reject channels or set a minimum channel size. In case that node runner wants to block all possible channels, it would mean to set theminimum_channel_size
to a greater number.Questions
I was thinking that better approach is to have a "channels_config" and inside would have inbound (or policy / limits) and also de Anchors channel config.