Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Aug 4, 2023
1 parent 66b1069 commit c5d5383
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion proto/interchain_security/ccv/provider/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import "cosmos_proto/cosmos.proto";
import "google/protobuf/any.proto";
import "ibc/lightclients/tendermint/v1/tendermint.proto";


// Msg defines the Msg service.
service Msg {
rpc AssignConsumerKey(MsgAssignConsumerKey) returns (MsgAssignConsumerKeyResponse);
Expand Down
9 changes: 0 additions & 9 deletions x/ccv/provider/keeper/misbehaviour.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper

import (
"bytes"
"sort"

"github.com/cosmos/interchain-security/v2/x/ccv/provider/types"
Expand Down Expand Up @@ -133,14 +132,6 @@ func headerToLightBlock(h ibctmtypes.Header) (*tmtypes.LightBlock, error) {
}, nil
}

func headersStatesTransitionsAreEqual(header1, header2 *tmtypes.LightBlock) bool {
return bytes.Equal(header1.ValidatorsHash, header2.ValidatorsHash) &&
bytes.Equal(header1.NextValidatorsHash, header2.NextValidatorsHash) &&
bytes.Equal(header1.ConsensusHash, header2.ConsensusHash) &&
bytes.Equal(header1.AppHash, header2.AppHash) &&
bytes.Equal(header1.LastResultsHash, header2.LastResultsHash)
}

// CheckMisbehaviourAndUpdateState checks that headers in the given misbehaviour forms
// a valid light client attack and that the corresponding light client isn't expired
func (k Keeper) CheckMisbehaviour(ctx sdk.Context, misbehaviour ibctmtypes.Misbehaviour) error {
Expand Down

0 comments on commit c5d5383

Please sign in to comment.