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

Too many queued stakings can cause slow block production #261

Open
5 tasks
hallazzang opened this issue Mar 28, 2022 · 0 comments
Open
5 tasks

Too many queued stakings can cause slow block production #261

hallazzang opened this issue Mar 28, 2022 · 0 comments
Assignees

Comments

@hallazzang
Copy link
Contributor

hallazzang commented Mar 28, 2022

We can put ending timestamp inside store keys to mitigate this problem.
When queuing staking, the end time is set to current blocktime + time.Duration(params.NextEpochDays), and queued staking will be processed at the end time, not when the epoch increases.

Tasks

  • Fix QueuedStaking logics
  • Fix relevant test cases
  • Add migration.go, legacy code
  • bump ConsensusVersion of farming to 2 from 1
  • Update Spec, docs, cli help
@hallazzang hallazzang self-assigned this Mar 28, 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

No branches or pull requests

1 participant