-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Is there a way to override the staking keeper ? #22515
Comments
If modules depends on the concrete staking keeper type, then wrapping it won't really work yeah. |
Hey @julienrbrt thanks for your reply. I indeed was considering this approach too. What do you think about forking the staking module only instead of the entire SDK? i.e. copying over the staking module code-base into my chain and wiring up the without using the SDKs staking module. Of course this would mean that some default cosmos sdk modules would still make use of the types coming from the default Cosmos SDK staking module. In my case I just want to modify some staking module keeper functions, so I guess this should work? |
You will need to fork the entire SDK in v0.50, because the staking module is part of the cosmos-sdk go module. |
Hey @julienrbrt in our case we've copied over |
Description
I want to add some custom logic to the staking keeper's
Slash
function. Is it possible to do this without having to fork the Cosmos SDK? I was thinking of having something of this sort and being imported inapp.go
.The problem with the code above is that the
evidence
andslashing
modules expect astakingkeeper.Keeper
, therefore, I can't really make use of it in the app config. Any suggestions please?I am on Cosmos SDK version v0.50.10
The text was updated successfully, but these errors were encountered: