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

feat: Add AfterValidatorDowntime hook in slashing module #10938

Merged
merged 1 commit into from
Jan 12, 2022
Merged

feat: Add AfterValidatorDowntime hook in slashing module #10938

merged 1 commit into from
Jan 12, 2022

Commits on Jan 12, 2022

  1. feat: Add AfterValidatorDowntime hook in slashing module

    Create a slashing hook that allows external modules to register an execution when a validator has downtime.
    
    Implementation details:
    
    * Call hook in HandleValidatorSignature (x/slashing/keeper/infractions.go) which updates validator SignInfo data
    
    * Defer hook execution in case it also wants to update validator SignInfo data
    
    * Add methods to update SignInfo to slashing keeper interface(/x/slashing/types/expected_keepers.go)
    sainoe committed Jan 12, 2022
    Configuration menu
    Copy the full SHA
    ad9f4f3 View commit details
    Browse the repository at this point in the history