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 at the end of each epoch #239

Open
hallazzang opened this issue Mar 4, 2022 · 1 comment
Assignees
Labels
wontfix This will not be worked on

Comments

@hallazzang
Copy link
Contributor

hallazzang commented Mar 4, 2022

This could be mitigated through:

  • Increasing params.DelayedStakingGasFee
  • Limiting the number of queued stakings within an epoch

Ref. #102

@hallazzang hallazzang self-assigned this Mar 4, 2022
@dongsam
Copy link
Contributor

dongsam commented Mar 11, 2022

if limit the number of queued stakings, Sybil and DOS attacks will be possible.

params.DelayedStakingGasFee is the state in which the average gas estimated in #102 is applied, and the default value is maintained as it can be increased by adjusting the parameter/genesis value on each chain to prevent spamming. However, due to the change in gas calculation amount in https://github.com/cosmos/cosmos-sdk/releases/tag/v0.45.0, the default value will be corrected by recalculating at bump SDK to v0.45.x

@dongsam dongsam added the wontfix This will not be worked on label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants