Skip to content

Commit

Permalink
Change default max throttled packets params + small log fix (#639)
Browse files Browse the repository at this point in the history
changes
  • Loading branch information
shaspitz committed Jan 6, 2023
1 parent fe44b35 commit 2b599b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions x/ccv/provider/keeper/throttle.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,11 +548,11 @@ func (k Keeper) GetLastSlashMeterFullTime(ctx sdktypes.Context) time.Time {
store := ctx.KVStore(k.storeKey)
bz := store.Get(providertypes.LastSlashMeterFullTimeKey())
if bz == nil {
panic("last slash replenish time not set")
panic("last slash meter full time not set")
}
time, err := sdktypes.ParseTimeBytes(bz)
if err != nil {
panic(fmt.Sprintf("failed to parse last slash meter replenish time: %s", err))
panic(fmt.Sprintf("failed to parse last slash meter full time: %s", err))
}
return time.UTC()
}
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/provider/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (

// DefaultMaxThrottledPackets defines the default amount of throttled slash or vsc matured packets
// that can be queued for a single consumer before the provider chain halts.
DefaultMaxThrottledPackets = 1000
DefaultMaxThrottledPackets = 100000
)

// Reflection based keys for params subspace
Expand Down

0 comments on commit 2b599b3

Please sign in to comment.