Skip to content

Commit 1ceddcb

Browse files
committed
rm throttled packets from query
1 parent b685958 commit 1ceddcb

File tree

3 files changed

+83
-151
lines changed

3 files changed

+83
-151
lines changed

proto/interchain_security/ccv/provider/v1/query.proto

-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ message QueryThrottleStateResponse {
150150
// full
151151
google.protobuf.Timestamp next_replenish_candidate = 3
152152
[ (gogoproto.stdtime) = true, (gogoproto.nullable) = false ];
153-
// data relevant to currently throttled slash packets
154-
repeated ThrottledSlashPacket packets = 4;
155153
}
156154

157155
message QueryThrottledConsumerPacketDataRequest { string chain_id = 1; }

x/ccv/provider/keeper/grpc_query.go

-2
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,11 @@ func (k Keeper) QueryThrottleState(goCtx context.Context, req *types.QueryThrott
147147
meter := k.GetSlashMeter(ctx)
148148
allowance := k.GetSlashMeterAllowance(ctx)
149149
candidate := k.GetSlashMeterReplenishTimeCandidate(ctx) // always UTC
150-
packets := []*types.ThrottledSlashPacket{}
151150

152151
return &types.QueryThrottleStateResponse{
153152
SlashMeter: meter.Int64(),
154153
SlashMeterAllowance: allowance.Int64(),
155154
NextReplenishCandidate: candidate,
156-
Packets: packets,
157155
}, nil
158156
}
159157

x/ccv/provider/types/query.pb.go

+83-147
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)