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

Don't panic on jailing #145

Merged
merged 1 commit into from
May 6, 2024
Merged

Don't panic on jailing #145

merged 1 commit into from
May 6, 2024

Conversation

nbaum
Copy link
Contributor

@nbaum nbaum commented May 5, 2024

The staking keeper receives a copy of the bank keeper, before it has been configured to burn tokens correctly.

This causes a panic if it ever tries to burn tokens - e.g. if it is jailing a validator.

This patch passes the bank keeper to the staking keeper by reference instead.

For the sake of completeness, it also passes it by reference to the distribution keeper, although that isn't related to the panic.

The staking keeper receives a copy of the bank keeper, before it has been configured to burn tokens correctly. This causes a panic if it ever tries to burn tokens - e.g. if it is jailing a validator. This patch passes the bank keeper to the staking keeper by reference instead.
@nbaum nbaum requested a review from jgtormo as a code owner May 5, 2024 16:44
@jgtormo jgtormo merged commit 717590b into dev May 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants