File tree Expand file tree Collapse file tree 5 files changed +1
-15
lines changed
light-clients/06-solomachine/types Expand file tree Collapse file tree 5 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
4343### State Machine Breaking
4444
4545### Improvements
46+ * [ \# 1186] ( https://github.com/cosmos/ibc-go/pull/1186/files ) Removing ` GetRoot ` function from ConsensusState interface in ` 02-client ` . ` GetRoot ` is unused by core IBC.
4647
4748### Features
4849
Original file line number Diff line number Diff line change @@ -197,11 +197,6 @@ func (cs ConsensusState) GetTimestamp() uint64 {
197197 panic ("legacy solo machine is deprecated!" )
198198}
199199
200- // GetRoot panics!
201- func (cs ConsensusState ) GetRoot () exported.Root {
202- panic ("legacy solo machine is deprecated!" )
203- }
204-
205200// ValidateBasic panics!
206201func (cs ConsensusState ) ValidateBasic () error {
207202 panic ("legacy solo machine is deprecated!" )
Original file line number Diff line number Diff line change @@ -185,10 +185,6 @@ type ConsensusState interface {
185185
186186 ClientType () string // Consensus kind
187187
188- // GetRoot returns the commitment root of the consensus state,
189- // which is used for key-value pair verification.
190- GetRoot () Root
191-
192188 // GetTimestamp returns the timestamp (in nanoseconds) of the consensus state
193189 GetTimestamp () uint64
194190
Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ func (cs ConsensusState) GetTimestamp() uint64 {
2222 return cs .Timestamp
2323}
2424
25- // GetRoot returns nil since solo machines do not have roots.
26- func (cs ConsensusState ) GetRoot () exported.Root {
27- return nil
28- }
29-
3025// GetPubKey unmarshals the public key into a cryptotypes.PubKey type.
3126// An error is returned if the public key is nil or the cached value
3227// is not a PubKey.
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ func (suite *SoloMachineTestSuite) TestConsensusState() {
1111
1212 suite .Require ().Equal (exported .Solomachine , consensusState .ClientType ())
1313 suite .Require ().Equal (suite .solomachine .Time , consensusState .GetTimestamp ())
14- suite .Require ().Nil (consensusState .GetRoot ())
1514}
1615
1716func (suite * SoloMachineTestSuite ) TestConsensusStateValidateBasic () {
You can’t perform that action at this time.
0 commit comments