diff --git a/x/meshsecurity/types/keys.go b/x/meshsecurity/types/keys.go index 73e7b54a..39e9ffbc 100644 --- a/x/meshsecurity/types/keys.go +++ b/x/meshsecurity/types/keys.go @@ -102,7 +102,7 @@ func BuildPipedValsetOpKey(op PipedValsetOperation, val sdk.ValAddress, slashInf if slashInfo == nil { panic("slash info is nil") } - sn = 8 + 8 + 1 + len(slashInfo.TotalSlashAmount) + 1 + len(slashInfo.SlashFraction) + 8 // 8 for height, 8 for power, +1 for total amount length ,+1 for slash length, +8 for time + sn = 8 + 8 + 1 + len(slashInfo.TotalSlashAmount) + 1 + len(slashInfo.SlashFraction) + 8 // 8 for height, 8 for power, +1 for total amount length, +1 for slash length, +8 for time } r := make([]byte, pn+an+sn+1+1) // +1 for address prefix, +1 for op copy(r, PipedValsetPrefix)