-
Notifications
You must be signed in to change notification settings - Fork 2
feat: adds a cctp finalizer mode #562
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
base: stage
Are you sure you want to change the base?
Conversation
| signature, | ||
| ); | ||
|
|
||
| if (this.config.cctpFinalizerMode === CctpFinalizerMode.Full) { |
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.
The mode is attesation-only here
| const enableCctpFinalizer = env.ENABLE_CCTP_FINALIZER | ||
| ? env.ENABLE_CCTP_FINALIZER === "true" | ||
| : false; |
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.
Are we good to remove this?
| } else if (env.ENABLE_CCTP_FINALIZER) { | ||
| cctpFinalizerMode = | ||
| env.ENABLE_CCTP_FINALIZER === "true" | ||
| ? CctpFinalizerMode.Full | ||
| : CctpFinalizerMode.Off; | ||
| } |
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.
Should we remove the support for ENABLE_CCTP_FINALIZER env entirely?
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.
We are not removing the support for ENABLE_CCTP_FINALIZER, the variable still exists. If ENABLE_CCTP_FINALIZER is false then the mode is going to be off if it is true and the mode is not set then the mode is set to full
Previously if we started the indexer locally the finalizer that publishes the burn events would error.
In this PR we add a finalizer publishing mode to distinguish between activating, deactivation or activating the finalizer with only attestations.