-
Notifications
You must be signed in to change notification settings - Fork 119
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
fix: inbound index #1536
fix: inbound index #1536
Conversation
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.
It looks good to me.
I'm thinking in anticipation of #1515 if we could consider instead of having a boolean IsFinalized
introduce a inboundStatus
So we can have:
- nonFinalized: vote still ongoing
- finalizing: vote finished but not executed yet
- finalized: voted and executed
We could introduce the status value and just keep nonFinalized and finalized for now
It makes sense to do that,however we can consider the following situations
|
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
What's the relationship to this issue? |
it adds a check for the inbound which have been finalized |
so it's basically using the txhash+chainid+eventid as a stable "index" for deduplicating observation? |
To me it seems a correct way to handle it. We can highlight the fix with TrailOfBits in our next call. |
Description
Closes: (https://github.com/zeta-chain/security/issues/44)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.
Checklist: