Skip to content

Commit

Permalink
rm throttled packets from query
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Sep 14, 2023
1 parent b685958 commit 1ceddcb
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 151 deletions.
2 changes: 0 additions & 2 deletions proto/interchain_security/ccv/provider/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ message QueryThrottleStateResponse {
// full
google.protobuf.Timestamp next_replenish_candidate = 3
[ (gogoproto.stdtime) = true, (gogoproto.nullable) = false ];
// data relevant to currently throttled slash packets
repeated ThrottledSlashPacket packets = 4;
}

message QueryThrottledConsumerPacketDataRequest { string chain_id = 1; }
Expand Down
2 changes: 0 additions & 2 deletions x/ccv/provider/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,11 @@ func (k Keeper) QueryThrottleState(goCtx context.Context, req *types.QueryThrott
meter := k.GetSlashMeter(ctx)
allowance := k.GetSlashMeterAllowance(ctx)
candidate := k.GetSlashMeterReplenishTimeCandidate(ctx) // always UTC
packets := []*types.ThrottledSlashPacket{}

return &types.QueryThrottleStateResponse{
SlashMeter: meter.Int64(),
SlashMeterAllowance: allowance.Int64(),
NextReplenishCandidate: candidate,
Packets: packets,
}, nil
}

Expand Down
230 changes: 83 additions & 147 deletions x/ccv/provider/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ceddcb

Please sign in to comment.