From 5ee4fad5010e8bf60fe17a568078bcaaf3d93bc2 Mon Sep 17 00:00:00 2001 From: Aditya Date: Sat, 29 Aug 2020 10:20:48 -0400 Subject: [PATCH] Remove Evidence handler from IBC (#7196) * fix builds * fix tests * lint * Update x/ibc/02-client/handler.go * Update x/ibc/handler.go Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Christopher Goes --- .../solomachine/v1/solomachine.proto | 2 +- proto/ibc/tendermint/tendermint.proto | 2 +- simapp/app.go | 7 +- x/ibc/02-client/exported/exported.go | 14 +- x/ibc/02-client/handler.go | 47 +++--- x/ibc/07-tendermint/types/codec.go | 3 +- x/ibc/07-tendermint/types/misbehaviour.go | 24 +-- .../types/misbehaviour_handle.go | 6 +- .../07-tendermint/types/misbehaviour_test.go | 14 +- x/ibc/07-tendermint/types/msgs.go | 21 +-- x/ibc/07-tendermint/types/tendermint.pb.go | 159 +++++++++--------- x/ibc/handler.go | 3 +- .../solomachine/types/misbehaviour.go | 20 +-- .../solomachine/types/misbehaviour_handle.go | 2 +- .../solomachine/types/misbehaviour_test.go | 8 +- x/ibc/light-clients/solomachine/types/msgs.go | 21 +-- .../solomachine/types/solomachine.pb.go | 110 ++++++------ 17 files changed, 206 insertions(+), 257 deletions(-) diff --git a/proto/ibc/lightclients/solomachine/v1/solomachine.proto b/proto/ibc/lightclients/solomachine/v1/solomachine.proto index 2127c8fe400a..89433ec9a7a3 100644 --- a/proto/ibc/lightclients/solomachine/v1/solomachine.proto +++ b/proto/ibc/lightclients/solomachine/v1/solomachine.proto @@ -85,7 +85,7 @@ message MsgUpdateClient { // arbitrary Misbehaviour. message MsgSubmitClientMisbehaviour { option (gogoproto.goproto_getters) = false; - bytes submitter = 1 + bytes signer = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; Misbehaviour misbehaviour = 2; } diff --git a/proto/ibc/tendermint/tendermint.proto b/proto/ibc/tendermint/tendermint.proto index e6cd0f6e7903..dc7f0345deb7 100644 --- a/proto/ibc/tendermint/tendermint.proto +++ b/proto/ibc/tendermint/tendermint.proto @@ -165,6 +165,6 @@ message MsgSubmitClientMisbehaviour { option (gogoproto.goproto_getters) = false; Misbehaviour misbehaviour = 1; - bytes submitter = 2 + bytes signer = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; } diff --git a/simapp/app.go b/simapp/app.go index 48c25ecbb33b..b4786010f98c 100644 --- a/simapp/app.go +++ b/simapp/app.go @@ -52,8 +52,6 @@ import ( transfer "github.com/cosmos/cosmos-sdk/x/ibc-transfer" ibctransferkeeper "github.com/cosmos/cosmos-sdk/x/ibc-transfer/keeper" ibctransfertypes "github.com/cosmos/cosmos-sdk/x/ibc-transfer/types" - ibcclient "github.com/cosmos/cosmos-sdk/x/ibc/02-client" - ibcclienttypes "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" porttypes "github.com/cosmos/cosmos-sdk/x/ibc/05-port/types" ibchost "github.com/cosmos/cosmos-sdk/x/ibc/24-host" ibckeeper "github.com/cosmos/cosmos-sdk/x/ibc/keeper" @@ -280,10 +278,7 @@ func NewSimApp( evidenceKeeper := evidencekeeper.NewKeeper( appCodec, keys[evidencetypes.StoreKey], &app.StakingKeeper, app.SlashingKeeper, ) - evidenceRouter := evidencetypes.NewRouter(). - AddRoute(ibcclienttypes.RouterKey, ibcclient.HandlerClientMisbehaviour(app.IBCKeeper.ClientKeeper)) - - evidenceKeeper.SetRouter(evidenceRouter) + // If evidence needs to be handled for the app, set routes in router here and seal app.EvidenceKeeper = *evidenceKeeper // NOTE: Any module instantiated in the module manager that is later modified diff --git a/x/ibc/02-client/exported/exported.go b/x/ibc/02-client/exported/exported.go index 82fe7e63670b..8af91a4a90b9 100644 --- a/x/ibc/02-client/exported/exported.go +++ b/x/ibc/02-client/exported/exported.go @@ -9,7 +9,6 @@ import ( sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/cosmos/cosmos-sdk/codec" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" connectionexported "github.com/cosmos/cosmos-sdk/x/ibc/03-connection/exported" channelexported "github.com/cosmos/cosmos-sdk/x/ibc/04-channel/exported" commitmentexported "github.com/cosmos/cosmos-sdk/x/ibc/23-commitment/exported" @@ -135,9 +134,13 @@ type ConsensusState interface { // Misbehaviour defines counterparty misbehaviour for a specific consensus type type Misbehaviour interface { - evidenceexported.Evidence ClientType() ClientType GetClientID() string + String() string + ValidateBasic() error + + // Height at which the infraction occurred + GetHeight() uint64 } // Header is the consensus state update information @@ -172,6 +175,13 @@ type MsgUpdateClient interface { GetHeader() Header } +// MsgSubmitMisbehaviour defines the msg interface that the +// SubmitMisbehaviour Handler expects +type MsgSubmitMisbehaviour interface { + sdk.Msg + GetMisbehaviour() Misbehaviour +} + // ClientType defines the type of the consensus algorithm type ClientType byte diff --git a/x/ibc/02-client/handler.go b/x/ibc/02-client/handler.go index 0be44574d92c..cf9cbcf78af5 100644 --- a/x/ibc/02-client/handler.go +++ b/x/ibc/02-client/handler.go @@ -5,8 +5,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" - evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" "github.com/cosmos/cosmos-sdk/x/ibc/02-client/keeper" "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" @@ -78,29 +76,32 @@ func HandleMsgUpdateClient(ctx sdk.Context, k keeper.Keeper, msg exported.MsgUpd }, nil } -// HandlerClientMisbehaviour defines the Evidence module handler for submitting a +// HandleMsgSubmitMisbehaviour defines the Evidence module handler for submitting a // light client misbehaviour. -func HandlerClientMisbehaviour(k keeper.Keeper) evidencetypes.Handler { - return func(ctx sdk.Context, evidence evidenceexported.Evidence) error { - misbehaviour, ok := evidence.(exported.Misbehaviour) - if !ok { - return sdkerrors.Wrapf(types.ErrInvalidMisbehaviour, - "expected evidence to implement client Misbehaviour interface, got %T", evidence, - ) - } +func HandleMsgSubmitMisbehaviour(ctx sdk.Context, k keeper.Keeper, msg exported.MsgSubmitMisbehaviour) (*sdk.Result, error) { + misbehaviour := msg.GetMisbehaviour() + if misbehaviour == nil { + return nil, sdkerrors.Wrapf(types.ErrInvalidMisbehaviour, "misbehaviour is nil") + } - if err := k.CheckMisbehaviourAndUpdateState(ctx, misbehaviour); err != nil { - return sdkerrors.Wrap(err, "failed to process misbehaviour for IBC client") - } + if err := misbehaviour.ValidateBasic(); err != nil { + return nil, err + } - ctx.EventManager().EmitEvent( - sdk.NewEvent( - types.EventTypeSubmitMisbehaviour, - sdk.NewAttribute(types.AttributeKeyClientID, misbehaviour.GetClientID()), - sdk.NewAttribute(types.AttributeKeyClientType, misbehaviour.ClientType().String()), - sdk.NewAttribute(types.AttributeKeyConsensusHeight, fmt.Sprintf("%d", uint64(misbehaviour.GetHeight()))), - ), - ) - return nil + if err := k.CheckMisbehaviourAndUpdateState(ctx, misbehaviour); err != nil { + return nil, sdkerrors.Wrap(err, "failed to process misbehaviour for IBC client") } + + ctx.EventManager().EmitEvent( + sdk.NewEvent( + types.EventTypeSubmitMisbehaviour, + sdk.NewAttribute(types.AttributeKeyClientID, misbehaviour.GetClientID()), + sdk.NewAttribute(types.AttributeKeyClientType, misbehaviour.ClientType().String()), + sdk.NewAttribute(types.AttributeKeyConsensusHeight, fmt.Sprintf("%d", misbehaviour.GetHeight())), + ), + ) + + return &sdk.Result{ + Events: ctx.EventManager().Events().ToABCIEvents(), + }, nil } diff --git a/x/ibc/07-tendermint/types/codec.go b/x/ibc/07-tendermint/types/codec.go index 98f77018369e..85eaee89a233 100644 --- a/x/ibc/07-tendermint/types/codec.go +++ b/x/ibc/07-tendermint/types/codec.go @@ -3,7 +3,6 @@ package types import ( "github.com/cosmos/cosmos-sdk/codec" codectypes "github.com/cosmos/cosmos-sdk/codec/types" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" ) @@ -19,7 +18,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) { &ConsensusState{}, ) registry.RegisterImplementations( - (*evidenceexported.Evidence)(nil), + (*clientexported.Misbehaviour)(nil), &Misbehaviour{}, ) } diff --git a/x/ibc/07-tendermint/types/misbehaviour.go b/x/ibc/07-tendermint/types/misbehaviour.go index 4d13ebc59fc8..7d57ff6b95ea 100644 --- a/x/ibc/07-tendermint/types/misbehaviour.go +++ b/x/ibc/07-tendermint/types/misbehaviour.go @@ -6,20 +6,16 @@ import ( yaml "gopkg.in/yaml.v2" - "github.com/tendermint/tendermint/crypto/tmhash" - tmbytes "github.com/tendermint/tendermint/libs/bytes" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtypes "github.com/tendermint/tendermint/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" clienttypes "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" host "github.com/cosmos/cosmos-sdk/x/ibc/24-host" ) var ( - _ evidenceexported.Evidence = Misbehaviour{} _ clientexported.Misbehaviour = Misbehaviour{} ) @@ -44,16 +40,6 @@ func (misbehaviour Misbehaviour) GetClientID() string { return misbehaviour.ClientId } -// Route implements Misbehaviour interface -func (misbehaviour Misbehaviour) Route() string { - return clienttypes.SubModuleName -} - -// Type implements Misbehaviour interface -func (misbehaviour Misbehaviour) Type() string { - return clientexported.TypeEvidenceClientMisbehaviour -} - // String implements Misbehaviour interface func (misbehaviour Misbehaviour) String() string { // FIXME: implement custom marshaller @@ -64,17 +50,11 @@ func (misbehaviour Misbehaviour) String() string { return string(bz) } -// Hash implements Misbehaviour interface -func (misbehaviour Misbehaviour) Hash() tmbytes.HexBytes { - bz := SubModuleCdc.MustMarshalBinaryBare(&misbehaviour) - return tmhash.Sum(bz) -} - // GetHeight returns the height at which misbehaviour occurred // // NOTE: assumes that misbehaviour headers have the same height -func (misbehaviour Misbehaviour) GetHeight() int64 { - return int64(math.Min(float64(misbehaviour.Header1.GetHeight()), float64(misbehaviour.Header2.GetHeight()))) +func (misbehaviour Misbehaviour) GetHeight() uint64 { + return uint64(math.Min(float64(misbehaviour.Header1.GetHeight()), float64(misbehaviour.Header2.GetHeight()))) } // GetTime returns the timestamp at which misbehaviour occurred. It uses the diff --git a/x/ibc/07-tendermint/types/misbehaviour_handle.go b/x/ibc/07-tendermint/types/misbehaviour_handle.go index 26266341ef10..4c0586514f5d 100644 --- a/x/ibc/07-tendermint/types/misbehaviour_handle.go +++ b/x/ibc/07-tendermint/types/misbehaviour_handle.go @@ -27,7 +27,7 @@ func (cs ClientState) CheckMisbehaviourAndUpdateState( ) (clientexported.ClientState, error) { // If client is already frozen at earlier height than misbehaviour, return with error - if cs.IsFrozen() && cs.FrozenHeight <= uint64(misbehaviour.GetHeight()) { + if cs.IsFrozen() && cs.FrozenHeight <= misbehaviour.GetHeight() { return nil, sdkerrors.Wrapf(clienttypes.ErrInvalidMisbehaviour, "client is already frozen at earlier height %d than misbehaviour height %d", cs.FrozenHeight, misbehaviour.GetHeight()) } @@ -56,7 +56,7 @@ func (cs ClientState) CheckMisbehaviourAndUpdateState( infractionHeight := tmEvidence.GetHeight() infractionTime := tmEvidence.GetTime() ageDuration := ctx.BlockTime().Sub(infractionTime) - ageBlocks := int64(cs.LatestHeight) - infractionHeight + ageBlocks := int64(cs.LatestHeight - infractionHeight) // TODO: Retrieve consensusparams from client state and not context // Issue #6516: https://github.com/cosmos/cosmos-sdk/issues/6516 @@ -96,7 +96,7 @@ func (cs ClientState) CheckMisbehaviourAndUpdateState( return nil, sdkerrors.Wrap(err, "verifying Header2 in Misbehaviour failed") } - cs.FrozenHeight = uint64(tmEvidence.GetHeight()) + cs.FrozenHeight = tmEvidence.GetHeight() return &cs, nil } diff --git a/x/ibc/07-tendermint/types/misbehaviour_test.go b/x/ibc/07-tendermint/types/misbehaviour_test.go index b9c9927b60ba..ab313c27550e 100644 --- a/x/ibc/07-tendermint/types/misbehaviour_test.go +++ b/x/ibc/07-tendermint/types/misbehaviour_test.go @@ -4,7 +4,6 @@ import ( "time" "github.com/tendermint/tendermint/crypto/tmhash" - tmbytes "github.com/tendermint/tendermint/libs/bytes" tmproto "github.com/tendermint/tendermint/proto/tendermint/types" tmtypes "github.com/tendermint/tendermint/types" @@ -12,7 +11,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/ibc/07-tendermint/types" ) -func (suite *TendermintTestSuite) TestEvidence() { +func (suite *TendermintTestSuite) TestMisbehaviour() { signers := []tmtypes.PrivValidator{suite.privVal} misbehaviour := &types.Misbehaviour{ @@ -22,15 +21,12 @@ func (suite *TendermintTestSuite) TestEvidence() { ClientId: clientID, } - suite.Require().Equal(misbehaviour.ClientType(), clientexported.Tendermint) - suite.Require().Equal(misbehaviour.GetClientID(), clientID) - suite.Require().Equal(misbehaviour.Route(), "client") - suite.Require().Equal(misbehaviour.Type(), "client_misbehaviour") - suite.Require().Equal(misbehaviour.Hash(), tmbytes.HexBytes(tmhash.Sum(suite.cdc.MustMarshalBinaryBare(misbehaviour)))) - suite.Require().Equal(misbehaviour.GetHeight(), int64(height)) + suite.Require().Equal(clientexported.Tendermint, misbehaviour.ClientType()) + suite.Require().Equal(clientID, misbehaviour.GetClientID()) + suite.Require().Equal(uint64(height), misbehaviour.GetHeight()) } -func (suite *TendermintTestSuite) TestEvidenceValidateBasic() { +func (suite *TendermintTestSuite) TestMisbehaviourValidateBasic() { altPrivVal := tmtypes.NewMockPV() altPubKey, err := altPrivVal.GetPubKey() suite.Require().NoError(err) diff --git a/x/ibc/07-tendermint/types/msgs.go b/x/ibc/07-tendermint/types/msgs.go index e93239e2f178..3348aeb1aa8a 100644 --- a/x/ibc/07-tendermint/types/msgs.go +++ b/x/ibc/07-tendermint/types/msgs.go @@ -8,7 +8,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" evidencetypes "github.com/cosmos/cosmos-sdk/x/evidence/types" clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" commitmenttypes "github.com/cosmos/cosmos-sdk/x/ibc/23-commitment/types" @@ -16,9 +15,9 @@ import ( ) var ( - _ clientexported.MsgCreateClient = (*MsgCreateClient)(nil) - _ clientexported.MsgUpdateClient = (*MsgUpdateClient)(nil) - _ evidenceexported.MsgSubmitEvidence = (*MsgSubmitClientMisbehaviour)(nil) + _ clientexported.MsgCreateClient = (*MsgCreateClient)(nil) + _ clientexported.MsgUpdateClient = (*MsgUpdateClient)(nil) + _ clientexported.MsgSubmitMisbehaviour = (*MsgSubmitClientMisbehaviour)(nil) ) // NewMsgCreateClient creates a new MsgCreateClient instance @@ -187,7 +186,7 @@ func (msg MsgUpdateClient) GetHeader() clientexported.Header { // NewMsgSubmitClientMisbehaviour creates a new MsgSubmitClientMisbehaviour // instance. func NewMsgSubmitClientMisbehaviour(m *Misbehaviour, s sdk.AccAddress) *MsgSubmitClientMisbehaviour { - return &MsgSubmitClientMisbehaviour{Misbehaviour: m, Submitter: s} + return &MsgSubmitClientMisbehaviour{Misbehaviour: m, Signer: s} } // Route returns the MsgSubmitClientMisbehaviour's route. @@ -206,8 +205,8 @@ func (msg MsgSubmitClientMisbehaviour) ValidateBasic() error { if err := msg.Misbehaviour.ValidateBasic(); err != nil { return err } - if msg.Submitter.Empty() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Submitter.String()) + if msg.Signer.Empty() { + return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, msg.Signer.String()) } return nil @@ -221,13 +220,9 @@ func (msg MsgSubmitClientMisbehaviour) GetSignBytes() []byte { // GetSigners returns the single expected signer for a MsgSubmitClientMisbehaviour. func (msg MsgSubmitClientMisbehaviour) GetSigners() []sdk.AccAddress { - return []sdk.AccAddress{msg.Submitter} + return []sdk.AccAddress{msg.Signer} } -func (msg MsgSubmitClientMisbehaviour) GetEvidence() evidenceexported.Evidence { +func (msg MsgSubmitClientMisbehaviour) GetMisbehaviour() clientexported.Misbehaviour { return msg.Misbehaviour } - -func (msg MsgSubmitClientMisbehaviour) GetSubmitter() sdk.AccAddress { - return msg.Submitter -} diff --git a/x/ibc/07-tendermint/types/tendermint.pb.go b/x/ibc/07-tendermint/types/tendermint.pb.go index 28ed8dd574b8..355d0acb7ee5 100644 --- a/x/ibc/07-tendermint/types/tendermint.pb.go +++ b/x/ibc/07-tendermint/types/tendermint.pb.go @@ -388,7 +388,7 @@ var xxx_messageInfo_MsgUpdateClient proto.InternalMessageInfo // light client misbehaviour. type MsgSubmitClientMisbehaviour struct { Misbehaviour *Misbehaviour `protobuf:"bytes,1,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` - Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=submitter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter,omitempty"` + Signer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"` } func (m *MsgSubmitClientMisbehaviour) Reset() { *m = MsgSubmitClientMisbehaviour{} } @@ -438,76 +438,75 @@ func init() { func init() { proto.RegisterFile("ibc/tendermint/tendermint.proto", fileDescriptor_76a953d5a747dd66) } var fileDescriptor_76a953d5a747dd66 = []byte{ - // 1096 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x4f, 0x1b, 0x47, - 0x14, 0x67, 0x8d, 0x31, 0x66, 0x6c, 0xfe, 0x74, 0x42, 0xa9, 0x21, 0xd4, 0x6b, 0x6d, 0x2f, 0x5c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xba, 0xb5, - 0x73, 0x1d, 0xeb, 0xdb, 0x85, 0x19, 0xed, 0x52, 0x16, 0x50, 0xa6, 0xfe, 0x6d, 0x33, 0xef, 0x44, - 0x7d, 0xcc, 0x3d, 0x76, 0xdd, 0xc7, 0x9e, 0x17, 0x61, 0xc6, 0x90, 0x02, 0x50, 0x03, 0xf9, 0x2f, - 0x4d, 0x70, 0xf4, 0xe9, 0xd0, 0xbb, 0x53, 0x8e, 0xe6, 0xef, 0x98, 0x7d, 0x3f, 0xef, 0xf8, 0x53, - 0x03, 0xf7, 0x0f, 0x59, 0xff, 0x78, 0xd4, 0x0d, 0x08, 0x97, 0xef, 0x98, 0xd8, 0x33, 0x8f, 0x40, - 0x3d, 0x28, 0xc8, 0x6a, 0x90, 0x6e, 0x4e, 0x5f, 0xb3, 0x18, 0x83, 0x26, 0x22, 0xe0, 0x77, 0x60, - 0x81, 0x09, 0x74, 0xae, 0x5e, 0xf9, 0x4e, 0xb7, 0xce, 0x31, 0xe4, 0xc5, 0xad, 0xa3, 0x57, 0x97, - 0x4d, 0xed, 0xe2, 0xb2, 0xa9, 0xfd, 0x7b, 0xd9, 0xd4, 0x9e, 0x5f, 0x35, 0x67, 0x2e, 0xae, 0x9a, - 0x33, 0x7f, 0x5f, 0x35, 0x67, 0x7e, 0xfe, 0xe2, 0xb5, 0xc8, 0x67, 0xed, 0xe4, 0x1b, 0xfa, 0xf3, - 0x2f, 0xb7, 0xa7, 0x3f, 0xdf, 0xbb, 0x15, 0x41, 0xda, 0x07, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, - 0xbf, 0xdb, 0xea, 0x9e, 0x2c, 0x0c, 0x00, 0x00, + // 1088 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x4f, 0xe3, 0x46, + 0x14, 0xc7, 0x21, 0x84, 0x30, 0x09, 0x7f, 0xea, 0xa5, 0x34,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x5e, 0xaa, 0x7c, 0x96, 0xea, 0xf4, 0xaf, 0xc0, 0x62, + 0x2f, 0x26, 0xbf, 0xa0, 0xc8, 0x19, 0x20, 0xdc, 0x1f, 0xb0, 0x46, 0xa5, 0xa5, 0x6d, 0x95, 0xed, + 0xc6, 0x38, 0x31, 0x56, 0x45, 0x94, 0x09, 0xb3, 0x09, 0xeb, 0x42, 0xde, 0xe7, 0x62, 0x0a, 0x0f, + 0x5c, 0x86, 0x28, 0xcb, 0xe0, 0xf3, 0xd3, 0xf0, 0x09, 0xb3, 0x09, 0xeb, 0x42, 0x96, 0xf0, 0x03, + 0x50, 0xe3, 0x0c, 0x76, 0xe8, 0x10, 0x79, 0xb4, 0x51, 0x6d, 0xcd, 0x6e, 0xd5, 0x3a, 0x2b, 0x16, + 0xf6, 0x68, 0xe7, 0x91, 0x75, 0x94, 0x5a, 0x8e, 0x87, 0xc8, 0xb3, 0xd7, 0x0a, 0x0a, 0x28, 0xee, + 0x26, 0x04, 0xc3, 0xcc, 0x85, 0xee, 0x96, 0x5f, 0xfc, 0x66, 0xcc, 0x98, 0x7f, 0x94, 0xc0, 0xd2, + 0x1e, 0x89, 0x28, 0x8a, 0xe8, 0x88, 0x0a, 0x36, 0xda, 0x60, 0x21, 0xe7, 0x39, 0xa7, 0x63, 0xad, + 0xb3, 0x71, 0xa3, 0x84, 0xdf, 0x67, 0x1e, 0x76, 0x35, 0xad, 0xe1, 0xcb, 0xb4, 0x52, 0x05, 0x4c, + 0x7f, 0x0c, 0xca, 0x31, 0x21, 0x4c, 0xf2, 0x75, 0x83, 0xf3, 0x55, 0x69, 0x8e, 0x43, 0x14, 0x9f, + 0x04, 0x08, 0x12, 0xc2, 0xec, 0x72, 0x0a, 0x87, 0xdc, 0x5b, 0x5f, 0x03, 0x15, 0x59, 0x95, 0x94, + 0x8c, 0x65, 0x28, 0x25, 0xfd, 0x57, 0x0d, 0xac, 0x46, 0xe8, 0x8c, 0x39, 0x79, 0xcf, 0x53, 0x67,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7, 0xc6, 0x7c, 0xff, 0xd5, + 0xed, 0x9d, 0xeb, 0xc4, 0xd8, 0x56, 0x66, 0xb4, 0x47, 0x68, 0x48, 0xa8, 0xfc, 0xb7, 0x4d, 0xfd, + 0x13, 0xf9, 0x31, 0xf7, 0xd4, 0xf3, 0x9e, 0xfa, 0x7e, 0x8c, 0x28, 0x85, 0x32, 0x80, 0x1c, 0xc8, + 0x7f, 0x6a, 0x9c, 0xa3, 0xcf, 0x87, 0xfe, 0xbd, 0x72, 0xb4, 0x78, 0xc7, 0xec, 0xdd, 0xbc, 0xe3, + 0x77, 0x0d, 0x3c, 0x3c, 0xa4, 0xfd, 0xe3, 0x51, 0x37, 0xc4, 0x4c, 0xbc, 0x63, 0x62, 0xcf, 0x3c, + 0x01, 0xf5, 0x50, 0x91, 0xe5, 0x20, 0xdd, 0x9c, 0xbe, 0xa6, 0x8a, 0x81, 0x13, 0x08, 0xe5, 0xca, + 0xa5, 0x3b, 0xb9, 0xb2, 0x7d, 0xf4, 0xe6, 0xb2, 0xa9, 0x5d, 0x5c, 0x36, 0xb5, 0x7f, 0x2e, 0x9b, + 0xda, 0xcb, 0xab, 0xe6, 0xcc, 0xc5, 0x55, 0x73, 0xe6, 0xaf, 0xab, 0xe6, 0xcc, 0x4f, 0x5f, 0xbc, + 0x35, 0xec, 0x59, 0x3b, 0xfd, 0x7a, 0xfe, 0xfc, 0xcb, 0xed, 0xe9, 0x0f, 0xf7, 0x6e, 0x85, 0xd3, + 0xf5, 0xd1, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xcb, 0x3c, 0xee, 0xf6, 0x26, 0x0c, 0x00, 0x00, } func (m *ClientState) Marshal() (dAtA []byte, err error) { @@ -975,10 +974,10 @@ func (m *MsgSubmitClientMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, er _ = i var l int _ = l - if len(m.Submitter) > 0 { - i -= len(m.Submitter) - copy(dAtA[i:], m.Submitter) - i = encodeVarintTendermint(dAtA, i, uint64(len(m.Submitter))) + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintTendermint(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0x12 } @@ -1191,7 +1190,7 @@ func (m *MsgSubmitClientMisbehaviour) Size() (n int) { l = m.Misbehaviour.Size() n += 1 + l + sovTendermint(uint64(l)) } - l = len(m.Submitter) + l = len(m.Signer) if l > 0 { n += 1 + l + sovTendermint(uint64(l)) } @@ -2668,7 +2667,7 @@ func (m *MsgSubmitClientMisbehaviour) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -2695,9 +2694,9 @@ func (m *MsgSubmitClientMisbehaviour) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Submitter = append(m.Submitter[:0], dAtA[iNdEx:postIndex]...) - if m.Submitter == nil { - m.Submitter = []byte{} + m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) + if m.Signer == nil { + m.Signer = []byte{} } iNdEx = postIndex default: diff --git a/x/ibc/handler.go b/x/ibc/handler.go index 9e370c3380aa..db8403aa3cdf 100644 --- a/x/ibc/handler.go +++ b/x/ibc/handler.go @@ -26,7 +26,8 @@ func NewHandler(k keeper.Keeper) sdk.Handler { case clientexported.MsgUpdateClient: return client.HandleMsgUpdateClient(ctx, k.ClientKeeper, msg) - // Client Misbehaviour is handled by the evidence module + case clientexported.MsgSubmitMisbehaviour: + return client.HandleMsgSubmitMisbehaviour(ctx, k.ClientKeeper, msg) // IBC connection msgs case *connectiontypes.MsgConnectionOpenInit: diff --git a/x/ibc/light-clients/solomachine/types/misbehaviour.go b/x/ibc/light-clients/solomachine/types/misbehaviour.go index ed51402841bf..01734c6d320b 100644 --- a/x/ibc/light-clients/solomachine/types/misbehaviour.go +++ b/x/ibc/light-clients/solomachine/types/misbehaviour.go @@ -5,18 +5,13 @@ import ( yaml "gopkg.in/yaml.v2" - "github.com/tendermint/tendermint/crypto/tmhash" - tmbytes "github.com/tendermint/tendermint/libs/bytes" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" clienttypes "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" host "github.com/cosmos/cosmos-sdk/x/ibc/24-host" ) var ( - _ evidenceexported.Evidence = (*Misbehaviour)(nil) _ clientexported.Misbehaviour = (*Misbehaviour)(nil) ) @@ -30,11 +25,6 @@ func (misbehaviour Misbehaviour) GetClientID() string { return misbehaviour.ClientId } -// Route implements Evidence interface. -func (misbehaviour Misbehaviour) Route() string { - return clienttypes.SubModuleName -} - // Type implements Evidence interface. func (misbehaviour Misbehaviour) Type() string { return clientexported.TypeEvidenceClientMisbehaviour @@ -46,15 +36,9 @@ func (misbehaviour Misbehaviour) String() string { return string(out) } -// Hash implements Evidence interface -func (misbehaviour Misbehaviour) Hash() tmbytes.HexBytes { - bz := SubModuleCdc.MustMarshalBinaryBare(&misbehaviour) - return tmhash.Sum(bz) -} - // GetHeight returns the sequence at which misbehaviour occurred. -func (misbehaviour Misbehaviour) GetHeight() int64 { - return int64(misbehaviour.Sequence) +func (misbehaviour Misbehaviour) GetHeight() uint64 { + return misbehaviour.Sequence } // ValidateBasic implements Evidence interface. diff --git a/x/ibc/light-clients/solomachine/types/misbehaviour_handle.go b/x/ibc/light-clients/solomachine/types/misbehaviour_handle.go index 335c77ab9504..e06c93cddd06 100644 --- a/x/ibc/light-clients/solomachine/types/misbehaviour_handle.go +++ b/x/ibc/light-clients/solomachine/types/misbehaviour_handle.go @@ -34,7 +34,7 @@ func (cs ClientState) CheckMisbehaviourAndUpdateState( return nil, err } - cs.FrozenSequence = uint64(soloMisbehaviour.GetHeight()) + cs.FrozenSequence = soloMisbehaviour.GetHeight() return cs, nil } diff --git a/x/ibc/light-clients/solomachine/types/misbehaviour_test.go b/x/ibc/light-clients/solomachine/types/misbehaviour_test.go index 67db944bc81a..ef70e00336e8 100644 --- a/x/ibc/light-clients/solomachine/types/misbehaviour_test.go +++ b/x/ibc/light-clients/solomachine/types/misbehaviour_test.go @@ -1,9 +1,6 @@ package types_test import ( - "github.com/tendermint/tendermint/crypto/tmhash" - tmbytes "github.com/tendermint/tendermint/libs/bytes" - clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" "github.com/cosmos/cosmos-sdk/x/ibc/light-clients/solomachine/types" ) @@ -13,10 +10,7 @@ func (suite *SoloMachineTestSuite) TestMisbehaviour() { suite.Require().Equal(clientexported.SoloMachine, misbehaviour.ClientType()) suite.Require().Equal(suite.solomachine.ClientID, misbehaviour.GetClientID()) - suite.Require().Equal("client", misbehaviour.Route()) - suite.Require().Equal("client_misbehaviour", misbehaviour.Type()) - suite.Require().Equal(tmbytes.HexBytes(tmhash.Sum(types.SubModuleCdc.MustMarshalBinaryBare(misbehaviour))), misbehaviour.Hash()) - suite.Require().Equal(int64(suite.solomachine.Sequence), misbehaviour.GetHeight()) + suite.Require().Equal(suite.solomachine.Sequence, misbehaviour.GetHeight()) } func (suite *SoloMachineTestSuite) TestMisbehaviourValidateBasic() { diff --git a/x/ibc/light-clients/solomachine/types/msgs.go b/x/ibc/light-clients/solomachine/types/msgs.go index 92eb9ce6f0a8..40d09803e090 100644 --- a/x/ibc/light-clients/solomachine/types/msgs.go +++ b/x/ibc/light-clients/solomachine/types/msgs.go @@ -3,16 +3,15 @@ package types import ( sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" - evidenceexported "github.com/cosmos/cosmos-sdk/x/evidence/exported" clientexported "github.com/cosmos/cosmos-sdk/x/ibc/02-client/exported" clienttypes "github.com/cosmos/cosmos-sdk/x/ibc/02-client/types" host "github.com/cosmos/cosmos-sdk/x/ibc/24-host" ) var ( - _ clientexported.MsgCreateClient = &MsgCreateClient{} - _ clientexported.MsgUpdateClient = &MsgUpdateClient{} - _ evidenceexported.MsgSubmitEvidence = &MsgSubmitClientMisbehaviour{} + _ clientexported.MsgCreateClient = &MsgCreateClient{} + _ clientexported.MsgUpdateClient = &MsgUpdateClient{} + _ clientexported.MsgSubmitMisbehaviour = &MsgSubmitClientMisbehaviour{} ) // NewMsgCreateClient creates a new MsgCreateClient instance @@ -127,7 +126,7 @@ func (msg MsgUpdateClient) GetHeader() clientexported.Header { // NewMsgSubmitClientMisbehaviour creates a new MsgSubmitClientMisbehaviour // instance. func NewMsgSubmitClientMisbehaviour(m *Misbehaviour, s sdk.AccAddress) *MsgSubmitClientMisbehaviour { - return &MsgSubmitClientMisbehaviour{Misbehaviour: m, Submitter: s} + return &MsgSubmitClientMisbehaviour{Misbehaviour: m, Signer: s} } // Route returns the MsgSubmitClientMisbehaviour's route. @@ -143,8 +142,8 @@ func (msg MsgSubmitClientMisbehaviour) ValidateBasic() error { if err := msg.Misbehaviour.ValidateBasic(); err != nil { return err } - if msg.Submitter.Empty() { - return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "submitter address cannot be empty") + if msg.Signer.Empty() { + return sdkerrors.Wrap(sdkerrors.ErrInvalidAddress, "signer address cannot be empty") } return nil @@ -158,13 +157,9 @@ func (msg MsgSubmitClientMisbehaviour) GetSignBytes() []byte { // GetSigners returns the single expected signer for a MsgSubmitClientMisbehaviour. func (msg MsgSubmitClientMisbehaviour) GetSigners() []sdk.AccAddress { - return []sdk.AccAddress{msg.Submitter} + return []sdk.AccAddress{msg.Signer} } -func (msg MsgSubmitClientMisbehaviour) GetEvidence() evidenceexported.Evidence { +func (msg MsgSubmitClientMisbehaviour) GetMisbehaviour() clientexported.Misbehaviour { return msg.Misbehaviour } - -func (msg MsgSubmitClientMisbehaviour) GetSubmitter() sdk.AccAddress { - return msg.Submitter -} diff --git a/x/ibc/light-clients/solomachine/types/solomachine.pb.go b/x/ibc/light-clients/solomachine/types/solomachine.pb.go index 72210ff2bc9b..6ab3a33ec166 100644 --- a/x/ibc/light-clients/solomachine/types/solomachine.pb.go +++ b/x/ibc/light-clients/solomachine/types/solomachine.pb.go @@ -351,7 +351,7 @@ var xxx_messageInfo_MsgUpdateClient proto.InternalMessageInfo // MsgSubmitClientMisbehaviour defines an sdk.Msg type that supports submitting // arbitrary Misbehaviour. type MsgSubmitClientMisbehaviour struct { - Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=submitter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter,omitempty"` + Signer github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=signer,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"signer,omitempty"` Misbehaviour *Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"` } @@ -405,52 +405,52 @@ func init() { } var fileDescriptor_6cc2ee18f7f86d4e = []byte{ - // 712 bytes of a gzipped FileDescriptorProto + // 710 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x55, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0x8e, 0xd3, 0xa8, 0x6a, 0xb6, 0xf9, 0xa5, 0xfd, 0x59, 0x29, 0x0a, 0xa1, 0x8a, 0x2b, 0x4b, - 0xa8, 0xbd, 0xc4, 0x96, 0xe1, 0xd6, 0x0b, 0xaa, 0xc3, 0x81, 0x3f, 0xaa, 0x0a, 0x4e, 0x91, 0x10, - 0x20, 0x45, 0x6b, 0x7b, 0xeb, 0xac, 0x1a, 0x7b, 0x8d, 0x77, 0x9d, 0x10, 0x9e, 0x00, 0x89, 0x0b, - 0x47, 0x8e, 0xbc, 0x00, 0x12, 0x8f, 0xc0, 0x0d, 0x24, 0x24, 0xd4, 0x23, 0xa7, 0x08, 0x35, 0x6f, - 0x90, 0x23, 0x27, 0x14, 0xef, 0x26, 0xb1, 0xa3, 0xaa, 0x11, 0x7f, 0x24, 0x4e, 0xde, 0x1d, 0xcf, - 0x7c, 0xf3, 0x7d, 0x33, 0xb3, 0xbb, 0xc0, 0xc0, 0xb6, 0xa3, 0x77, 0xb1, 0xd7, 0x61, 0x4e, 0x17, - 0xa3, 0x80, 0x51, 0x9d, 0x92, 0x2e, 0xf1, 0xa1, 0xd3, 0xc1, 0x01, 0xd2, 0x7b, 0x46, 0x7a, 0xab, - 0x85, 0x11, 0x61, 0x44, 0x56, 0xb0, 0xed, 0x68, 0xe9, 0x10, 0x2d, 0xed, 0xd3, 0x33, 0x6a, 0xbb, - 0x0e, 0xa1, 0x3e, 0xa1, 0xba, 0x0d, 0x29, 0xd2, 0x9d, 0x68, 0x10, 0x32, 0xa2, 0xf7, 0x0c, 0x1b, - 0x31, 0x68, 0x88, 0x2d, 0x47, 0xaa, 0x55, 0x3c, 0xe2, 0x91, 0x64, 0xa9, 0x4f, 0x56, 0xdc, 0xaa, - 0x7e, 0x95, 0xc0, 0x7a, 0x33, 0x41, 0x6e, 0x31, 0xc8, 0x90, 0xdc, 0x04, 0x1b, 0x27, 0x11, 0x79, - 0x89, 0x82, 0x36, 0x45, 0xcf, 0x63, 0x14, 0x38, 0xa8, 0x2a, 0xed, 0x48, 0x7b, 0x05, 0xb3, 0x36, - 0x1e, 0x2a, 0x57, 0x06, 0xd0, 0xef, 0xee, 0xab, 0x0b, 0x0e, 0xaa, 0x55, 0xe6, 0x96, 0x96, 0x30, - 0xc8, 0x0c, 0x6c, 0x38, 0x24, 0xa0, 0x28, 0xa0, 0x31, 0x6d, 0xd3, 0x09, 0x6e, 0x35, 0xbf, 0x23, - 0xed, 0xad, 0xdf, 0xd0, 0xb5, 0x25, 0x72, 0xb4, 0xe6, 0x34, 0x2e, 0xa1, 0x93, 0xce, 0xba, 0x80, - 0xa8, 0x5a, 0x65, 0x27,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0xf4, 0xac, 0x21, 0x7d, 0x3f, 0x6b, 0x48, 0x6f, 0xce, 0x1b, 0xb9, 0xd3, 0xf3, 0x46, + 0xee, 0xdb, 0x79, 0x23, 0xf7, 0xc4, 0xbc, 0x94, 0xe9, 0x0b, 0x7d, 0xf6, 0x10, 0x36, 0x2f, 0x7a, + 0x09, 0x13, 0x25, 0x76, 0x31, 0x79, 0xa1, 0x6e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x92, 0xa4, + 0xec, 0xff, 0x36, 0x07, 0x00, 0x00, } func (m *ClientState) Marshal() (dAtA []byte, err error) { @@ -832,10 +832,10 @@ func (m *MsgSubmitClientMisbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, er i-- dAtA[i] = 0x12 } - if len(m.Submitter) > 0 { - i -= len(m.Submitter) - copy(dAtA[i:], m.Submitter) - i = encodeVarintSolomachine(dAtA, i, uint64(len(m.Submitter))) + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintSolomachine(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0xa } @@ -1005,7 +1005,7 @@ func (m *MsgSubmitClientMisbehaviour) Size() (n int) { } var l int _ = l - l = len(m.Submitter) + l = len(m.Signer) if l > 0 { n += 1 + l + sovSolomachine(uint64(l)) } @@ -2075,7 +2075,7 @@ func (m *MsgSubmitClientMisbehaviour) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var byteLen int for shift := uint(0); ; shift += 7 { @@ -2102,9 +2102,9 @@ func (m *MsgSubmitClientMisbehaviour) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Submitter = append(m.Submitter[:0], dAtA[iNdEx:postIndex]...) - if m.Submitter == nil { - m.Submitter = []byte{} + m.Signer = append(m.Signer[:0], dAtA[iNdEx:postIndex]...) + if m.Signer == nil { + m.Signer = []byte{} } iNdEx = postIndex case 2: