disable invariant for checking 0 self delegation
This commit is contained in:
parent
f52f7a1a54
commit
d8a9a5a3c0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue