-
Notifications
You must be signed in to change notification settings - Fork 164
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
eth, pm: Use previous round L1 block for ticket expiration if the current block hash is zero #2362
eth, pm: Use previous round L1 block for ticket expiration if the current block hash is zero #2362
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.
Looks good after fixing the linter error and addressing a few minor tweaks in comments/error messages.
…rent block hash is zero
Co-authored-by: Yondon Fu <yondon.fu@gmail.com>
Co-authored-by: Yondon Fu <yondon.fu@gmail.com>
d6dcb5b
to
621fab7
Compare
@yondonfu I've incorporated your suggestions, added unit tests, and fixed the linter. PTAL. |
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.
LGTM after squashing!
What does this pull request do? Explain your changes. (required)
Arbitrum sometimes returns
0x00
as the L1 Block Hash. To prevent a situation when all Os cannot receive tickets for the whole round, we can use the previous round as the ticket expiration parameter.Specific updates (required)
How did you test each of these updates (required)
streamflow
contractsDoes this pull request close any open issues?
fix #2360
Checklist:
make
runs successfully./test.sh
passREADME and other documentation updated