Skip to content

Stop haphazardly passing InitFeatures in message handlers #1954

Closed
@TheBlueMatt

Description

@TheBlueMatt

handle_{shutdown,open_channel,accept_channel} etc methods all take an InitFeatures parameter because ChannelManager needed it and it was the cheapest way to pass them through. We could pass them through on every message handler, but there's little reason to since ChannelManager caches the last InitFeatures in the peer state anyway, and it would clean up the interface to just remove it.

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