From c5d53833e04529b9f1634ed0970a8cd08ab6357c Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Fri, 4 Aug 2023 15:59:03 +0200 Subject: [PATCH] nits --- proto/interchain_security/ccv/provider/v1/tx.proto | 1 - x/ccv/provider/keeper/misbehaviour.go | 9 --------- 2 files changed, 10 deletions(-) diff --git a/proto/interchain_security/ccv/provider/v1/tx.proto b/proto/interchain_security/ccv/provider/v1/tx.proto index b12c0ce5dc..61be3064ea 100644 --- a/proto/interchain_security/ccv/provider/v1/tx.proto +++ b/proto/interchain_security/ccv/provider/v1/tx.proto @@ -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); diff --git a/x/ccv/provider/keeper/misbehaviour.go b/x/ccv/provider/keeper/misbehaviour.go index a0de0dcdea..38a0ad356a 100644 --- a/x/ccv/provider/keeper/misbehaviour.go +++ b/x/ccv/provider/keeper/misbehaviour.go @@ -1,7 +1,6 @@ package keeper import ( - "bytes" "sort" "github.com/cosmos/interchain-security/v2/x/ccv/provider/types" @@ -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 {