livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

rounds: Freeze initialization at LIP-73 round #514

Closed yondonfu closed 2 years ago

yondonfu commented 2 years ago

What does this pull request do? Explain your changes. (required)

This PR adds a require statement in RoundsManager.initializeRound() that checks if the LIP-73 round is set and that the current round is before the LIP-73 round. Otherwise, the function will revert. This feature allows state updates to the L1 contracts during the Confluence upgrade to be frozen since all functions that support state updates for users should have the currentRoundInitialized modifier that prevents those functions from being called if the current round is not initialized.

Specific updates (required)

See commit history.

How did you test each of these updates (required)

Updated unit tests.

Does this pull request close any open issues?

Fixes #504

Checklist: