Skip to content

Commit

Permalink
disable invariant for checking 0 self delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
conorpp committed Dec 21, 2022
1 parent f52f7a1 commit d8a9a5a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x/staking/keeper/invariants.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ func PositiveDelegationInvariant(k Keeper) sdk.Invariant {

msg += fmt.Sprintf("\tdelegation with negative shares: %+v\n", delegation)
}
// TODO: turn this back on after all validators use self delegations
// if delegation.Shares.IsZero() {
// count++

if delegation.Shares.IsZero() {
count++

msg += fmt.Sprintf("\tdelegation with zero shares: %+v\n", delegation)
}
// msg += fmt.Sprintf("\tdelegation with zero shares: %+v\n", delegation)
// }
}

broken := count != 0
Expand Down

0 comments on commit d8a9a5a

Please sign in to comment.