Skip to content
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

feat: make the consistency level configurable. #155

Closed
wants to merge 1 commit into from

Conversation

RahulMaganti47
Copy link
Contributor

@RahulMaganti47 RahulMaganti47 commented Feb 21, 2024

Fixes #154.

@RahulMaganti47 RahulMaganti47 changed the base branch from main to refactor February 21, 2024 23:16
@djb15
Copy link
Collaborator

djb15 commented Feb 22, 2024

Why do we want to make this configurable when it's going to be an immutable anyway? Is there a world where we don't want finality for the WH endpoint?

@RahulMaganti47
Copy link
Contributor Author

Why do we want to make this configurable when it's going to be an immutable anyway? Is there a world where we don't want finality for the WH endpoint?

there may be integrators who'd like to choose their own consistency level (even if it is immutable - this allows them to make this choice upfront)

@@ -15,7 +15,7 @@ abstract contract WormholeEndpoint is Endpoint, IWormholeEndpoint, IWormholeRece

// TODO -- fix this after some testing
uint256 public constant GAS_LIMIT = 500000;
uint8 public constant CONSISTENCY_LEVEL = 1;
uint8 public immutable consistencyLevel;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a docstring above this then to specify common consistency levels that integrators might want to use and why?

@RahulMaganti47 RahulMaganti47 changed the base branch from refactor to main February 22, 2024 20:36
@RahulMaganti47 RahulMaganti47 changed the base branch from main to refactor February 22, 2024 20:37
@RahulMaganti47 RahulMaganti47 changed the base branch from refactor to main February 22, 2024 20:38
@RahulMaganti47 RahulMaganti47 changed the base branch from main to refactor February 22, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make consistency level configurable
2 participants