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

Remove unused comparison for old and new end block #108

Open
abarmat opened this issue Apr 8, 2021 · 0 comments
Open

Remove unused comparison for old and new end block #108

abarmat opened this issue Apr 8, 2021 · 0 comments

Comments

@abarmat
Copy link
Collaborator

abarmat commented Apr 8, 2021

#107 (comment)

- epoch start block = 1000
- epoch end block = 3000

then we halve the epoch length. so now it will be
  let newEndBlock = 1000 + 1000
  if (3000 != 2000) {
    epoch.endBlock = 2000
    epoch.save()
  }
  
but if we double the epoch length we get
  let newEndBlock = 1000 + 4000
  if (3000 != 5000) {
    epoch.endBlock = 5000
    epoch.save()
  }
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

No branches or pull requests

1 participant