Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjingcun authored Oct 24, 2024
1 parent 61cdfaa commit 962fee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/consumer_equivocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (k Keeper) HandleConsumerMisbehaviour(ctx sdk.Context, consumerId string, m
return err
}

provAddrs := make([]types.ProviderConsAddress, len(byzantineValidators))
provAddrs := make([]types.ProviderConsAddress, 0, len(byzantineValidators))

// slash, jail, and tombstone the Byzantine validators
for _, v := range byzantineValidators {
Expand Down

0 comments on commit 962fee8

Please sign in to comment.