Skip to content

Commit

Permalink
imp: mark GetTimestamp as deprecated (cosmos#5353)
Browse files Browse the repository at this point in the history
Co-authored-by: DimitrisJim <d.f.hilliard@gmail.com>
  • Loading branch information
sontrinh16 and DimitrisJim authored Dec 11, 2023
1 parent 55966e0 commit b07010d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ This is the type of client consensus. It should be the same as the `ClientType`

## `GetTimestamp` method

*Deprecated*: soon to be removed from interface

`GetTimestamp` should return the timestamp (in nanoseconds) of the consensus state snapshot.

## `ValidateBasic` method
Expand Down
3 changes: 3 additions & 0 deletions modules/core/exported/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ type ConsensusState interface {
ClientType() string // Consensus kind

// GetTimestamp returns the timestamp (in nanoseconds) of the consensus state
//
// Deprecated: GetTimestamp is not used outside of the light client implementations,
// and therefore it doesn't need to be an interface function.
GetTimestamp() uint64

ValidateBasic() error
Expand Down

0 comments on commit b07010d

Please sign in to comment.