Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default max throttled packets params + small log fix #639

Merged
merged 3 commits into from
Jan 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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