Skip to content

x/gov: slash nonvoting validators error. #2158

Closed
@MrXJC

Description

@MrXJC

Summary of Bug

There is a big error in gov. It will lead to the consensus failure, because every node maybe have entirely different nonVotingVals which is from the map currValidators. Then, slash validators in different order and make the Apphash different.

for _, valAddr := range nonVotingVals {
	val := keeper.ds.GetValidatorSet().Validator(ctx, valAddr)
	keeper.ds.GetValidatorSet().Slash(....)
}

Steps to Reproduce

Just submit a proposal and all of the validators don't vote.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions