Skip to content

Switch to per-channel config #485

@ariard

Description

@ariard

Right now ChannelConfig is global, it's should be per-channel as you may want some of your channel being zero-conf and other not. And also enforce weaker/straighter csv delay according to the peer you're connected to, watchtower usage or not, user risk tolerance, channel value, ...

Channel config is split between ChannelHandshakeLimits, ChannelHandshake, ChannelConfig, all of them should be passed by caller to channel constructors instead of relying on ChannelManager default_configuration (check if current config struct are relevant, maybe need more thinking)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions