-
Notifications
You must be signed in to change notification settings - Fork 96
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
Introduce custom staking module that update validators voting power each N blocks #320
Conversation
substitute staking module
use custom keeper
…rver-func Reimplement delegate msg server func
fix custom staking keeper msg server issue with nil keeper
introduce staking middleware prototype.
…e-module-into-cosmos-chain integrate staking middleware module into cosmos chain
…ustom-staking-module use staking middleware in custom staking module to batch delegation.
iterate delegation.
iterate delegation storage
…-staking override end block custom staking module implementation
…atching add logic to app module to batch delegation.
An aside and perhaps for another time: Why is the custom staking module in custom/staking and not under x/staking or x/customstaking? |
thanks for question sir. |
thanks. initially this module was created to collect all staking bond/unbond request from users and execute them later each N block in EndBlock. but later we changed the approach to execute initial staking End block validator set update each N block. so i would like to keep this logic with storing params separately to not introduce extra storage key into the initial staking module and not introduce any changes into tx/query service into cosmos staking module that not represented as wrapper module custom-staking. |
I'd argue that all your modules in x/ are 'custom', and both bank and staking ought to be in x/, but it's a personal preference thing :) |
…om abuse" This reverts commit 2ff3fe7.
introduce protection into unbond/rebond staking service tx from abuse
Refactor custom staking module solution.
update:
|
If @faddat and @joe-bowman are happy we merge |
@blasrodri I think we may need to rebase this on v7 but I agree with you on readiness, pending addressing Joe's questions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
…leware-module Introduce custom staking module that update validators voting power each N blocks
…leware-module Introduce custom staking module that update validators voting power each N blocks
…/stakingmiddleware-module Introduce custom staking module that update validators voting power each N blocks
2 modules introduced:
BlockValidatorUpdates
method taken from cosmosSDK/x/staking module
and if line introduced that basically now execute ApplyAndReturnValidatorSetUpdates each N blocks