You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop haphazardly passing InitFeatures in message handlers #1954
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.
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.
Activity
TheBlueMatt commentedon Jan 15, 2023
This should be pretty easy to tackle - just remove the
InitFeaturesparameters from the message handlers, replacing the access to them inChannelManagerwith the version stored inper_peer_state.danielgranhao commentedon Jan 16, 2023
If no one has yet, I can try to tackle this.
TheBlueMatt commentedon Jan 16, 2023
Do it!
TheBlueMatt commentedon Jan 20, 2023
Fixed by #1959