Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(consensus): add cometInfo to consensus #20615

Merged
merged 13 commits into from
Jun 13, 2024
Prev Previous commit
Next Next commit
add changelog
tac0turtle committed Jun 13, 2024
commit 445c1779d9659436596e58ff9730d6bca536ea39
2 changes: 2 additions & 0 deletions x/consensus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -30,3 +30,5 @@ Ref: https://keepachangelog.com/en/1.0.0/
# Changelog

## [Unreleased]

* [#20615](https://github.com/cosmos/cosmos-sdk/pull/20615) Add consensus messages to add cometinfo to consensus modules

Unchanged files with check annotations Beta

}
func (m *CommitID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CommitID.Marshal(b, m, deterministic)

Check failure on line 163 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / dependency-review

cannot use m (variable of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to xxx_messageInfo_CommitID.Marshal: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)

Check failure on line 163 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / tests (01)

cannot use m (variable of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to xxx_messageInfo_CommitID.Marshal: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
}
}
func (m *CommitID) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommitID.Merge(m, src)

Check failure on line 174 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / dependency-review

cannot use m (variable of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to xxx_messageInfo_CommitID.Merge: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)

Check failure on line 174 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / tests (01)

cannot use m (variable of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to xxx_messageInfo_CommitID.Merge: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)
}
func (m *CommitID) XXX_Size() int {
return m.Size()
}
func (m *CommitID) XXX_DiscardUnknown() {
xxx_messageInfo_CommitID.DiscardUnknown(m)

Check failure on line 180 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / dependency-review

cannot use m (variable of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to xxx_messageInfo_CommitID.DiscardUnknown: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)

Check failure on line 180 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / tests (01)

cannot use m (variable of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to xxx_messageInfo_CommitID.DiscardUnknown: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)
}
var xxx_messageInfo_CommitID proto.InternalMessageInfo
func init() {
proto.RegisterType((*CommitInfo)(nil), "cosmos.store.v1beta1.CommitInfo")
proto.RegisterType((*StoreInfo)(nil), "cosmos.store.v1beta1.StoreInfo")
proto.RegisterType((*CommitID)(nil), "cosmos.store.v1beta1.CommitID")

Check failure on line 202 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / dependency-review

cannot use (*CommitID)(nil) (value of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to proto.RegisterType: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)

Check failure on line 202 in cosmossdk.io/store/types/commit_info.pb.go

GitHub Actions / tests (01)

cannot use (*CommitID)(nil) (value of type *CommitID) as "github.com/cosmos/gogoproto/proto".Message value in argument to proto.RegisterType: *CommitID does not implement "github.com/cosmos/gogoproto/proto".Message (missing method String)
}
func init() {
x.LastCommit = value.Message().Interface().(*v1.CommitInfo)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.CometInfo"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
panic(fmt.Errorf("message cosmos.consensus.v1.CometInfo does not contain field %s", fd.FullName()))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
}
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.QueryCometInfoRequest"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
panic(fmt.Errorf("message cosmos.consensus.v1.QueryCometInfoRequest does not contain field %s", fd.FullName()))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
}
x.CometInfo = value.Message().Interface().(*CometInfo)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.QueryCometInfoResponse"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
panic(fmt.Errorf("message cosmos.consensus.v1.QueryCometInfoResponse does not contain field %s", fd.FullName()))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
}
x.LastCommit = value.Message().Interface().(*v11.CommitInfo)
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgSetCometInfo"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
panic(fmt.Errorf("message cosmos.consensus.v1.MsgSetCometInfo does not contain field %s", fd.FullName()))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
}
switch fd.FullName() {
default:
if fd.IsExtension() {
panic(fmt.Errorf("proto3 declared messages do not support extensions: cosmos.consensus.v1.MsgSetCometInfoResponse"))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
panic(fmt.Errorf("message cosmos.consensus.v1.MsgSetCometInfoResponse does not contain field %s", fd.FullName()))

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
}