-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add UpdateChannel to Endpoint #3984
Comments
Would be best to implement and refactor relevant usages after 04-channel-ugprades has been merged. |
Going to note we should not remove any functions which can be handled with this improvement ( |
ah right, had completely forgotten testing package is actually part of API, that is wild. |
It's a fairly widely used component of ibc-go. Originally it was designed only for internal usage, but then it fairly quickly was forked a lot to which a second set of improvements (dubbed v2) revitalized the testing pkg to be reuseable outside of ibc-go |
could maybe deprecate these in v10 too along with Coordinator funcs? |
Summary
Would be nice to add a helper function on Endpoint that takes care of setting channel fields as needed. We currently have
SetChannelState
, would be nice if we could also set the flush status, order, etc without requiring a different function each time. Taking inspiration from Cians suggestion, we could have:This could resolve most instances of the pattern: get channel, modify, set channel. Adding this function ideally removes
SetChannelState
completely and allowsSetChannel/GetChannel
to be private or, possibly, inlined intoUpdateChannel
.For Admin Use
The text was updated successfully, but these errors were encountered: