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

chore: update validator nonces in endblocker #1292

Conversation

maharifu
Copy link
Contributor

@maharifu maharifu commented Sep 13, 2024

Related Github tickets

Background

The way it was before, we would need a claim to be observed so validators would be updated. By doing it in the endblocker, we validators are always up-to-date.

This should prevent a situation where the last claim is 19, the last observed nonce is 18, but validators are stuck on nonce 17. They would receive a list of block events with the block of nonce 19 (latest unobserved) but would be unable to claim it, since skyway would expect them to submit a claim for nonce 18 instead.

Testing completed

  • test coverage exists or has been added/updated
  • tested in a private testnet

Breaking changes

  • I have checked my code for breaking changes
  • If there are breaking changes, there is a supporting migration.

The way it was before, we would need a claim to be observed so
validators would be updated. By doing it in the endblocker, we
validators are always up-to-date.

This should prevent a situation where the last claim is 19, the last
observed nonce is 18, but validators are stuck on nonce 17. They would
receive a list of block events with the block of nonce 19 (latest
unobserved) but would be unable to claim it, since skyway would expect
them to submit a claim for nonce 18 instead.
x/skyway/abci.go Outdated Show resolved Hide resolved
@maharifu maharifu marked this pull request as ready for review September 13, 2024 12:59
@maharifu maharifu merged commit d4d89dd into palomachain:master Sep 13, 2024
4 checks passed
@maharifu maharifu deleted the chore/update_validator_nonces_in_endblocker branch September 13, 2024 13:47
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.

2 participants