diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e0d59752b5..2e0015683ae 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -54,7 +54,6 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (channel) [\#644](https://github.com/cosmos/ibc-go/pull/644) Removes `CounterpartyHops` function from the ChannelKeeper.
* (testing) [\#776](https://github.com/cosmos/ibc-go/pull/776) Adding helper fn to generate capability name for testing callbacks
* (channel) [\#882](https://github.com/cosmos/ibc-go/pull/882) The `WriteAcknowledgement` API now takes `exported.Acknowledgement` instead of a byte array
-* (06-solomachine) [\#1093](https://github.com/cosmos/ibc-go/pull/1093) Renaming `06-solomachine` type `Misbehaviour` to `DuplicateSignatures`
### State Machine Breaking
diff --git a/docs/ibc/proto-docs.md b/docs/ibc/proto-docs.md
index e44a01c9d71..48219f3d66b 100644
--- a/docs/ibc/proto-docs.md
+++ b/docs/ibc/proto-docs.md
@@ -322,9 +322,9 @@
- [ConnectionStateData](#ibc.lightclients.solomachine.v2.ConnectionStateData)
- [ConsensusState](#ibc.lightclients.solomachine.v2.ConsensusState)
- [ConsensusStateData](#ibc.lightclients.solomachine.v2.ConsensusStateData)
- - [DuplicateSignatures](#ibc.lightclients.solomachine.v2.DuplicateSignatures)
- [Header](#ibc.lightclients.solomachine.v2.Header)
- [HeaderData](#ibc.lightclients.solomachine.v2.HeaderData)
+ - [Misbehaviour](#ibc.lightclients.solomachine.v2.Misbehaviour)
- [NextSequenceRecvData](#ibc.lightclients.solomachine.v2.NextSequenceRecvData)
- [PacketAcknowledgementData](#ibc.lightclients.solomachine.v2.PacketAcknowledgementData)
- [PacketCommitmentData](#ibc.lightclients.solomachine.v2.PacketCommitmentData)
@@ -4764,25 +4764,6 @@ verification.
-
-
-### DuplicateSignatures
-DuplicateSignatures defines misbehaviour for a solo machine which consists
-of a sequence and two signatures over different messages at that sequence.
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| `client_id` | [string](#string) | | |
-| `sequence` | [uint64](#uint64) | | |
-| `signature_one` | [SignatureAndData](#ibc.lightclients.solomachine.v2.SignatureAndData) | | |
-| `signature_two` | [SignatureAndData](#ibc.lightclients.solomachine.v2.SignatureAndData) | | |
-
-
-
-
-
-
### Header
@@ -4818,6 +4799,25 @@ HeaderData returns the SignBytes data for update verification.
+
+
+### Misbehaviour
+Misbehaviour defines misbehaviour for a solo machine which consists
+of a sequence and two signatures over different messages at that sequence.
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `client_id` | [string](#string) | | |
+| `sequence` | [uint64](#uint64) | | |
+| `signature_one` | [SignatureAndData](#ibc.lightclients.solomachine.v2.SignatureAndData) | | |
+| `signature_two` | [SignatureAndData](#ibc.lightclients.solomachine.v2.SignatureAndData) | | |
+
+
+
+
+
+
### NextSequenceRecvData
diff --git a/modules/core/02-client/migrations/v6/solomachine.pb.go b/modules/core/02-client/migrations/v6/solomachine.pb.go
index 8b280dcba72..441a7030402 100644
--- a/modules/core/02-client/migrations/v6/solomachine.pb.go
+++ b/modules/core/02-client/migrations/v6/solomachine.pb.go
@@ -222,27 +222,27 @@ func (m *Header) XXX_DiscardUnknown() {
var xxx_messageInfo_Header proto.InternalMessageInfo
-// DuplicateSignatures defines misbehaviour for a solo machine which consists
+// Misbehaviour defines misbehaviour for a solo machine which consists
// of a sequence and two signatures over different messages at that sequence.
-type DuplicateSignatures struct {
+type Misbehaviour struct {
ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
SignatureOne *SignatureAndData `protobuf:"bytes,3,opt,name=signature_one,json=signatureOne,proto3" json:"signature_one,omitempty" yaml:"signature_one"`
SignatureTwo *SignatureAndData `protobuf:"bytes,4,opt,name=signature_two,json=signatureTwo,proto3" json:"signature_two,omitempty" yaml:"signature_two"`
}
-func (m *DuplicateSignatures) Reset() { *m = DuplicateSignatures{} }
-func (m *DuplicateSignatures) String() string { return proto.CompactTextString(m) }
-func (*DuplicateSignatures) ProtoMessage() {}
-func (*DuplicateSignatures) Descriptor() ([]byte, []int) {
+func (m *Misbehaviour) Reset() { *m = Misbehaviour{} }
+func (m *Misbehaviour) String() string { return proto.CompactTextString(m) }
+func (*Misbehaviour) ProtoMessage() {}
+func (*Misbehaviour) Descriptor() ([]byte, []int) {
return fileDescriptor_141333b361aae010, []int{3}
}
-func (m *DuplicateSignatures) XXX_Unmarshal(b []byte) error {
+func (m *Misbehaviour) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *DuplicateSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *Misbehaviour) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_DuplicateSignatures.Marshal(b, m, deterministic)
+ return xxx_messageInfo_Misbehaviour.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -252,17 +252,17 @@ func (m *DuplicateSignatures) XXX_Marshal(b []byte, deterministic bool) ([]byte,
return b[:n], nil
}
}
-func (m *DuplicateSignatures) XXX_Merge(src proto.Message) {
- xxx_messageInfo_DuplicateSignatures.Merge(m, src)
+func (m *Misbehaviour) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_Misbehaviour.Merge(m, src)
}
-func (m *DuplicateSignatures) XXX_Size() int {
+func (m *Misbehaviour) XXX_Size() int {
return m.Size()
}
-func (m *DuplicateSignatures) XXX_DiscardUnknown() {
- xxx_messageInfo_DuplicateSignatures.DiscardUnknown(m)
+func (m *Misbehaviour) XXX_DiscardUnknown() {
+ xxx_messageInfo_Misbehaviour.DiscardUnknown(m)
}
-var xxx_messageInfo_DuplicateSignatures proto.InternalMessageInfo
+var xxx_messageInfo_Misbehaviour proto.InternalMessageInfo
// SignatureAndData contains a signature and the data signed over to create that
// signature.
@@ -803,7 +803,7 @@ func init() {
proto.RegisterType((*ClientState)(nil), "ibc.lightclients.solomachine.v2.ClientState")
proto.RegisterType((*ConsensusState)(nil), "ibc.lightclients.solomachine.v2.ConsensusState")
proto.RegisterType((*Header)(nil), "ibc.lightclients.solomachine.v2.Header")
- proto.RegisterType((*DuplicateSignatures)(nil), "ibc.lightclients.solomachine.v2.DuplicateSignatures")
+ proto.RegisterType((*Misbehaviour)(nil), "ibc.lightclients.solomachine.v2.Misbehaviour")
proto.RegisterType((*SignatureAndData)(nil), "ibc.lightclients.solomachine.v2.SignatureAndData")
proto.RegisterType((*TimestampedSignatureData)(nil), "ibc.lightclients.solomachine.v2.TimestampedSignatureData")
proto.RegisterType((*SignBytes)(nil), "ibc.lightclients.solomachine.v2.SignBytes")
@@ -823,93 +823,93 @@ func init() {
}
var fileDescriptor_141333b361aae010 = []byte{
- // 1371 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdd, 0x8e, 0xdb, 0x44,
- 0x14, 0x5e, 0xa7, 0xe9, 0x36, 0x99, 0x6c, 0x77, 0x83, 0x9b, 0xb6, 0x59, 0xb7, 0x4a, 0x8c, 0x11,
- 0x65, 0x41, 0x34, 0x61, 0xb7, 0xa2, 0x42, 0x15, 0x02, 0x1c, 0xc7, 0xa5, 0x69, 0xb7, 0xde, 0xe0,
- 0x78, 0x81, 0x56, 0x48, 0xc6, 0xb1, 0x67, 0xb3, 0x56, 0x1d, 0x4f, 0x1a, 0x4f, 0x92, 0x06, 0x09,
- 0x09, 0x71, 0x55, 0x22, 0x2e, 0x78, 0x81, 0x48, 0x08, 0xc4, 0x73, 0x70, 0x87, 0xb8, 0x42, 0xbd,
- 0xe4, 0x2a, 0xa0, 0xf6, 0x0d, 0xf2, 0x04, 0xc8, 0x9e, 0x49, 0x6c, 0x67, 0x77, 0xb3, 0xe2, 0xef,
- 0x6e, 0xe6, 0x7c, 0x67, 0xbe, 0xf3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xaa, 0xe9, 0x55, 0xf9, 0xa3, 0x43, 0x0f, 0xf2, 0x68, 0x3e, 0x4e,
+ 0xad, 0x91, 0xc0, 0x3d, 0x64, 0x06, 0x78, 0x72, 0x96, 0x87, 0x54, 0x60, 0x77, 0x47, 0x16, 0x4b,
+ 0xb2, 0x9a, 0x4a, 0x90, 0xca, 0x90, 0x1d, 0x17, 0x7f, 0xf2, 0x63, 0x76, 0xa5, 0xf8, 0xf9, 0x6f,
+ 0xcf, 0xb2, 0xcc, 0xd3, 0x67, 0x59, 0xe6, 0xcf, 0x67, 0x59, 0xe6, 0xbb, 0xe7, 0xd9, 0x95, 0xa7,
+ 0xcf, 0xb3, 0x2b, 0xbf, 0x3f, 0xcf, 0xae, 0x3c, 0xb8, 0xdd, 0xb0, 0xdc, 0x66, 0xaf, 0x96, 0x37,
+ 0x71, 0xbb, 0x60, 0x62, 0xa7, 0x8d, 0x9d, 0x82, 0x55, 0x33, 0xaf, 0x37, 0x70, 0xa1, 0x7f, 0xa3,
+ 0xd0, 0xc6, 0xf5, 0x5e, 0x0b, 0x39, 0xe4, 0x7f, 0xea, 0xfa, 0xec, 0x87, 0xea, 0xad, 0x9b, 0xd7,
+ 0xc3, 0xff, 0x54, 0xde, 0x35, 0xe3, 0xd4, 0x56, 0xfd, 0x79, 0x76, 0xe3, 0xaf, 0x00, 0x00, 0x00,
+ 0xff, 0xff, 0x5d, 0xd4, 0x6c, 0xfb, 0x80, 0x0d, 0x00, 0x00,
}
func (m *ClientState) Marshal() (dAtA []byte, err error) {
@@ -1078,7 +1078,7 @@ func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *DuplicateSignatures) Marshal() (dAtA []byte, err error) {
+func (m *Misbehaviour) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1088,12 +1088,12 @@ func (m *DuplicateSignatures) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *DuplicateSignatures) MarshalTo(dAtA []byte) (int, error) {
+func (m *Misbehaviour) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *DuplicateSignatures) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *Misbehaviour) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
@@ -1700,7 +1700,7 @@ func (m *Header) Size() (n int) {
return n
}
-func (m *DuplicateSignatures) Size() (n int) {
+func (m *Misbehaviour) Size() (n int) {
if m == nil {
return 0
}
@@ -2415,7 +2415,7 @@ func (m *Header) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *DuplicateSignatures) Unmarshal(dAtA []byte) error {
+func (m *Misbehaviour) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -2438,10 +2438,10 @@ func (m *DuplicateSignatures) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: DuplicateSignatures: wiretype end group for non-group")
+ return fmt.Errorf("proto: Misbehaviour: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: DuplicateSignatures: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: Misbehaviour: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
diff --git a/modules/core/02-client/types/msgs_test.go b/modules/core/02-client/types/msgs_test.go
index d50a4489dbf..b42445c030c 100644
--- a/modules/core/02-client/types/msgs_test.go
+++ b/modules/core/02-client/types/msgs_test.go
@@ -583,7 +583,7 @@ func (suite *TypesTestSuite) TestMsgSubmitMisbehaviour_ValidateBasic() {
{
"invalid solomachine misbehaviour",
func() {
- msg, err = types.NewMsgSubmitMisbehaviour("solomachine", &solomachinetypes.DuplicateSignatures{}, suite.chainA.SenderAccount.GetAddress().String())
+ msg, err = types.NewMsgSubmitMisbehaviour("solomachine", &solomachinetypes.Misbehaviour{}, suite.chainA.SenderAccount.GetAddress().String())
suite.Require().NoError(err)
},
false,
diff --git a/modules/light-clients/06-solomachine/misbehaviour.go b/modules/light-clients/06-solomachine/misbehaviour.go
index d07503b6f17..b673d7e6cd6 100644
--- a/modules/light-clients/06-solomachine/misbehaviour.go
+++ b/modules/light-clients/06-solomachine/misbehaviour.go
@@ -10,48 +10,48 @@ import (
"github.com/cosmos/ibc-go/v3/modules/core/exported"
)
-var _ exported.Misbehaviour = &DuplicateSignatures{}
+var _ exported.Misbehaviour = &Misbehaviour{}
// ClientType is a Solo Machine light client.
-func (ds DuplicateSignatures) ClientType() string {
+func (misbehaviour Misbehaviour) ClientType() string {
return exported.Solomachine
}
// GetClientID returns the ID of the client that committed a misbehaviour.
-func (ds DuplicateSignatures) GetClientID() string {
- return ds.ClientId
+func (misbehaviour Misbehaviour) GetClientID() string {
+ return misbehaviour.ClientId
}
// Type implements Misbehaviour interface.
-func (ds DuplicateSignatures) Type() string {
+func (misbehaviour Misbehaviour) Type() string {
return exported.TypeClientMisbehaviour
}
// ValidateBasic implements Misbehaviour interface.
-func (ds DuplicateSignatures) ValidateBasic() error {
- if err := host.ClientIdentifierValidator(ds.ClientId); err != nil {
+func (misbehaviour Misbehaviour) ValidateBasic() error {
+ if err := host.ClientIdentifierValidator(misbehaviour.ClientId); err != nil {
return sdkerrors.Wrap(err, "invalid client identifier for solo machine")
}
- if ds.Sequence == 0 {
+ if misbehaviour.Sequence == 0 {
return sdkerrors.Wrap(clienttypes.ErrInvalidMisbehaviour, "sequence cannot be 0")
}
- if err := ds.SignatureOne.ValidateBasic(); err != nil {
+ if err := misbehaviour.SignatureOne.ValidateBasic(); err != nil {
return sdkerrors.Wrap(err, "signature one failed basic validation")
}
- if err := ds.SignatureTwo.ValidateBasic(); err != nil {
+ if err := misbehaviour.SignatureTwo.ValidateBasic(); err != nil {
return sdkerrors.Wrap(err, "signature two failed basic validation")
}
// misbehaviour signatures cannot be identical
- if bytes.Equal(ds.SignatureOne.Signature, ds.SignatureTwo.Signature) {
+ if bytes.Equal(misbehaviour.SignatureOne.Signature, misbehaviour.SignatureTwo.Signature) {
return sdkerrors.Wrap(clienttypes.ErrInvalidMisbehaviour, "misbehaviour signatures cannot be equal")
}
// message data signed cannot be identical
- if bytes.Equal(ds.SignatureOne.Data, ds.SignatureTwo.Data) {
+ if bytes.Equal(misbehaviour.SignatureOne.Data, misbehaviour.SignatureTwo.Data) {
return sdkerrors.Wrap(clienttypes.ErrInvalidMisbehaviour, "misbehaviour signature data must be signed over different messages")
}
diff --git a/modules/light-clients/06-solomachine/misbehaviour_test.go b/modules/light-clients/06-solomachine/misbehaviour_test.go
index e8590bb9f21..813a8520ee7 100644
--- a/modules/light-clients/06-solomachine/misbehaviour_test.go
+++ b/modules/light-clients/06-solomachine/misbehaviour_test.go
@@ -19,91 +19,91 @@ func (suite *SoloMachineTestSuite) TestMisbehaviourValidateBasic() {
testCases := []struct {
name string
- malleateMisbehaviour func(duplicateSigHeader *types.DuplicateSignatures)
+ malleateMisbehaviour func(misbehaviour *types.Misbehaviour)
expPass bool
}{
{
"valid misbehaviour",
- func(*types.DuplicateSignatures) {},
+ func(*types.Misbehaviour) {},
true,
},
{
"invalid client ID",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.ClientId = "(badclientid)"
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.ClientId = "(badclientid)"
},
false,
},
{
"sequence is zero",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.Sequence = 0
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.Sequence = 0
},
false,
},
{
"signature one sig is empty",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.SignatureOne.Signature = []byte{}
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.SignatureOne.Signature = []byte{}
},
false,
},
{
"signature two sig is empty",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.SignatureTwo.Signature = []byte{}
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.SignatureTwo.Signature = []byte{}
},
false,
},
{
"signature one data is empty",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.SignatureOne.Data = nil
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.SignatureOne.Data = nil
},
false,
},
{
"signature two data is empty",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.SignatureTwo.Data = []byte{}
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.SignatureTwo.Data = []byte{}
},
false,
},
{
"signatures are identical",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.SignatureTwo.Signature = duplicateSigHeader.SignatureOne.Signature
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.SignatureTwo.Signature = misbehaviour.SignatureOne.Signature
},
false,
},
{
"data signed is identical",
- func(duplicateSigHeader *types.DuplicateSignatures) {
- duplicateSigHeader.SignatureTwo.Data = duplicateSigHeader.SignatureOne.Data
+ func(misbehaviour *types.Misbehaviour) {
+ misbehaviour.SignatureTwo.Data = misbehaviour.SignatureOne.Data
},
false,
},
{
"data type for SignatureOne is unspecified",
- func(misbehaviour *types.DuplicateSignatures) {
+ func(misbehaviour *types.Misbehaviour) {
misbehaviour.SignatureOne.DataType = types.UNSPECIFIED
}, false,
},
{
"data type for SignatureTwo is unspecified",
- func(misbehaviour *types.DuplicateSignatures) {
+ func(misbehaviour *types.Misbehaviour) {
misbehaviour.SignatureTwo.DataType = types.UNSPECIFIED
}, false,
},
{
"timestamp for SignatureOne is zero",
- func(misbehaviour *types.DuplicateSignatures) {
+ func(misbehaviour *types.Misbehaviour) {
misbehaviour.SignatureOne.Timestamp = 0
}, false,
},
{
"timestamp for SignatureTwo is zero",
- func(misbehaviour *types.DuplicateSignatures) {
+ func(misbehaviour *types.Misbehaviour) {
misbehaviour.SignatureTwo.Timestamp = 0
}, false,
},
diff --git a/modules/light-clients/06-solomachine/types/codec.go b/modules/light-clients/06-solomachine/types/codec.go
index 67f89394f39..1db36165157 100644
--- a/modules/light-clients/06-solomachine/types/codec.go
+++ b/modules/light-clients/06-solomachine/types/codec.go
@@ -27,7 +27,7 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
)
registry.RegisterImplementations(
(*exported.Misbehaviour)(nil),
- &DuplicateSignatures{},
+ &Misbehaviour{},
)
}
diff --git a/modules/light-clients/06-solomachine/types/misbehaviour_handle.go b/modules/light-clients/06-solomachine/types/misbehaviour_handle.go
index 7b8a7157ff4..d5a1d57cb57 100644
--- a/modules/light-clients/06-solomachine/types/misbehaviour_handle.go
+++ b/modules/light-clients/06-solomachine/types/misbehaviour_handle.go
@@ -22,11 +22,11 @@ func (cs ClientState) CheckMisbehaviourAndUpdateState(
misbehaviour exported.Misbehaviour,
) (exported.ClientState, error) {
- soloMisbehaviour, ok := misbehaviour.(*DuplicateSignatures)
+ soloMisbehaviour, ok := misbehaviour.(*Misbehaviour)
if !ok {
return nil, sdkerrors.Wrapf(
clienttypes.ErrInvalidClientType,
- "misbehaviour type %T, expected %T", misbehaviour, &DuplicateSignatures{},
+ "misbehaviour type %T, expected %T", misbehaviour, &Misbehaviour{},
)
}
@@ -50,7 +50,7 @@ func (cs ClientState) CheckMisbehaviourAndUpdateState(
// verifySignatureAndData verifies that the currently registered public key has signed
// over the provided data and that the data is valid. The data is valid if it can be
// unmarshaled into the specified data type.
-func verifySignatureAndData(cdc codec.BinaryCodec, clientState ClientState, misbehaviour *DuplicateSignatures, sigAndData *SignatureAndData) error {
+func verifySignatureAndData(cdc codec.BinaryCodec, clientState ClientState, misbehaviour *Misbehaviour, sigAndData *SignatureAndData) error {
// do not check misbehaviour timestamp since we want to allow processing of past misbehaviour
diff --git a/proto/ibc/lightclients/solomachine/v2/solomachine.proto b/proto/ibc/lightclients/solomachine/v2/solomachine.proto
index acf60f147e2..5cc5ba9c551 100644
--- a/proto/ibc/lightclients/solomachine/v2/solomachine.proto
+++ b/proto/ibc/lightclients/solomachine/v2/solomachine.proto
@@ -48,9 +48,9 @@ message Header {
string new_diversifier = 5 [(gogoproto.moretags) = "yaml:\"new_diversifier\""];
}
-// DuplicateSignatures defines misbehaviour for a solo machine which consists
+// Misbehaviour defines misbehaviour for a solo machine which consists
// of a sequence and two signatures over different messages at that sequence.
-message DuplicateSignatures {
+message Misbehaviour {
option (gogoproto.goproto_getters) = false;
string client_id = 1 [(gogoproto.moretags) = "yaml:\"client_id\""];
uint64 sequence = 2;
diff --git a/testing/solomachine.go b/testing/solomachine.go
index 928fb441510..485fb75be0e 100644
--- a/testing/solomachine.go
+++ b/testing/solomachine.go
@@ -154,7 +154,7 @@ func (solo *Solomachine) CreateHeader() *solomachinetypes.Header {
// CreateMisbehaviour constructs testing misbehaviour for the solo machine client
// by signing over two different data bytes at the same sequence.
-func (solo *Solomachine) CreateMisbehaviour() *solomachinetypes.DuplicateSignatures {
+func (solo *Solomachine) CreateMisbehaviour() *solomachinetypes.Misbehaviour {
path := solo.GetClientStatePath("counterparty")
dataOne, err := solomachinetypes.ClientStateDataBytes(solo.cdc, path, solo.ClientState())
require.NoError(solo.t, err)
@@ -204,7 +204,7 @@ func (solo *Solomachine) CreateMisbehaviour() *solomachinetypes.DuplicateSignatu
Timestamp: solo.Time,
}
- return &solomachinetypes.DuplicateSignatures{
+ return &solomachinetypes.Misbehaviour{
ClientId: solo.ClientID,
Sequence: solo.Sequence,
SignatureOne: &signatureOne,