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

eth, pm: Use previous round L1 block for ticket expiration if the current block hash is zero #2362

Merged
merged 7 commits into from
Apr 13, 2022

Conversation

leszko
Copy link
Contributor

@leszko leszko commented Apr 12, 2022

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)

  • unit tests
  • local geth with streamflow contracts

Does this pull request close any open issues?

fix #2360

Checklist:

@leszko leszko requested a review from yondonfu April 12, 2022 15:28
Copy link
Member

@yondonfu yondonfu left a 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.

eth/watchers/timewatcher.go Outdated Show resolved Hide resolved
eth/watchers/timewatcher.go Outdated Show resolved Hide resolved
@leszko leszko force-pushed the 2360-backdata-tickets-zero-block-hash branch from d6dcb5b to 621fab7 Compare April 13, 2022 09:38
@leszko
Copy link
Contributor Author

leszko commented Apr 13, 2022

@yondonfu I've incorporated your suggestions, added unit tests, and fixed the linter. PTAL.

@leszko leszko requested a review from yondonfu April 13, 2022 09:49
Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

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

LGTM after squashing!

@leszko leszko merged commit 11b0600 into livepeer:master Apr 13, 2022
@leszko leszko deleted the 2360-backdata-tickets-zero-block-hash branch April 13, 2022 13:52
ad-astra-video pushed a commit to ad-astra-video/go-livepeer that referenced this pull request May 25, 2022
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.

Backdate tickets by one round if the block hash for the current round is 0
2 participants