Skip to content

tgrade-valset: Wrong automatic jailing logic #184

Closed
@maurolacy

Description

If verify_validators is enabled, non-signing validators must be jailed only if they are not already jailed. If not, it'll be effectively impossible for them to get out of jail, because their jailing expiration date will be continuously moved forward.

// validator is inactive for at least MISSED_BLOCKS, jail!
JAIL.save(deps.storage, operator_addr, &expiration)

Write a test to confirm / reproduce this bug, and the fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions