Skip to content

Stop haphazardly passing InitFeatures in message handlers #1954

Closed

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.

Activity

  1. TheBlueMatt commented on Jan 15, 2023

    @TheBlueMatt
    CollaboratorAuthor

    This should be pretty easy to tackle - just remove the InitFeatures parameters from the message handlers, replacing the access to them in ChannelManager with the version stored in per_peer_state.

  2. danielgranhao commented on Jan 16, 2023

    @danielgranhao
    Contributor

    If no one has yet, I can try to tackle this.

  3. TheBlueMatt commented on Jan 16, 2023

    @TheBlueMatt
    CollaboratorAuthor

    Do it!

  4. TheBlueMatt commented on Jan 20, 2023

    @TheBlueMatt
    CollaboratorAuthor

    Fixed by #1959

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions