Skip to content

Too many queued stakings can cause slow block production #261

@hallazzang

Description

@hallazzang

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions