-
Notifications
You must be signed in to change notification settings - Fork 775
node: Extend flow cancel by configuring allow-list of chain ID pairs ("corridors") #4229
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
Merged
johnsaigle
merged 16 commits into
wormhole-foundation:main
from
johnsaigle:flow-cancel-pipes
Apr 30, 2025
Merged
node: Extend flow cancel by configuring allow-list of chain ID pairs ("corridors") #4229
johnsaigle
merged 16 commits into
wormhole-foundation:main
from
johnsaigle:flow-cancel-pipes
Apr 30, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4303203
to
35e937b
Compare
djb15
reviewed
Jan 27, 2025
54d16d7
to
2c1ba16
Compare
djb15
reviewed
Feb 28, 2025
037c0ad
to
a24d86d
Compare
djb15
reviewed
Feb 28, 2025
bruce-riley
reviewed
Mar 4, 2025
bruce-riley
reviewed
Mar 4, 2025
bruce-riley
reviewed
Mar 4, 2025
bruce-riley
reviewed
Mar 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of comments.
djb15
previously approved these changes
Mar 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, looks good!
f7774b1
to
c189016
Compare
djb15
previously approved these changes
Mar 20, 2025
c0e1f5a
to
a0ac16e
Compare
a3052ec
to
3ac0f88
Compare
- Add a concept of "pipes" which consist of a pair of chains - Add field in the Governer that enables flow cancel only for "pipes" which are explicitly enabled - Set the Eth-Sui pipe as the only flow cancel-enabled pair. Sui is the only chain with frequent governor congestion so it is the only one that really needs the Flow Cancel capabilities. Ethereum is the main chain that Sui is interacting with in terms of volume moving in and out of Sui. - Refactor calling sites for flow cancel transfer functions so that all checks are done in one place. (Should help prevent bugs where only one calling site is updated.)
- Add unit tests to ensure that the flow cancel feature works iff valid pipes are configured - Adds unit tests for the pipe type (validity, equality between two pipes) - Modifies pipe.equals() to always return false for invalid pipes
3ac0f88
to
7671c9f
Compare
djb15
approved these changes
Apr 29, 2025
bruce-riley
approved these changes
Apr 30, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
which are explicitly enabled
only chain with frequent governor congestion so it is the only one
that really needs the Flow Cancel capabilities. Ethereum is the main
chain that Sui is interacting with in terms of volume moving in and
out of Sui.
checks are done in one place. (Should help prevent bugs where only one
calling site is updated.)