disable invariant for checking 0 self delegation

This commit is contained in:
Conor Patrick 2022-12-21 16:31:38 +00:00
parent f52f7a1a54
commit d8a9a5a3c0
1 changed files with 5 additions and 5 deletions

View File

@ -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