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

Postconfirmation: acceptor terms #1065

Merged

Conversation

apenzk
Copy link
Contributor

@apenzk apenzk commented Feb 24, 2025

Summary

  • Categories: protocol-units
  1. Accetor

The Acceptor serves in terms. Provides functionality to pick an attester and make it dependent on L1Blocks.
There are no rewards at this point and a volunteer acceptor can postconfirm/rollover at any point. This should be fixed in a later iteration.

  1. Additional tests
  • testStakeActivationAndPostconfirmation tests a more complex scenario of rolling over and postconfirmation. This failed before making some modifications to the postconfirmation and staking code.
  • fixes setupGenesisWithThreeAttesters

Changelog

  • add getAcceptorStartL1Block
  • add getCurrentAcceptor
  • fix setupGenesisWithThreeAttesters
  • att tests
    • testStakeActivationAndPostconfirmation
    • testAcceptorRewards (incomplete)
    • testGetAcceptor
  • fix bugs in tests

Testing

forge test ok

Outstanding issues

Turns out it is expensive to find the closest block that has the closest time to a given timestamp. So we will have to transition to considering Acceptor per block height. Its not yet clear if this is problematic for the incentives of the acceptor that is active at the border of epochs.

@apenzk apenzk changed the title acceptor term tests Postconfirmation: acceptor terms Feb 24, 2025
@apenzk apenzk marked this pull request as ready for review February 24, 2025 11:26
@apenzk apenzk merged commit 577ab76 into apenzk/postconfirmation Feb 25, 2025
48 of 93 checks passed
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.

1 participant