Skip to content

Commit

Permalink
Merge PR #5774: Debug timestamp issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cwgoes authored Mar 10, 2020
1 parent 85a86eb commit 01ccc21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions x/ibc/02-client/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ func (k Keeper) GetSelfConsensusState(ctx sdk.Context, height uint64) (exported.
valSet := stakingtypes.Validators(histInfo.Valset)

consensusState := ibctmtypes.ConsensusState{
Height: height,
// FIXME: Currently commented out due to time normalisation issues.
//Timestamp: histInfo.Header.Time,
Height: height,
Timestamp: histInfo.Header.Time,
Root: commitmenttypes.NewMerkleRoot(histInfo.Header.AppHash),
ValidatorSet: tmtypes.NewValidatorSet(valSet.ToTmValidators()),
}
Expand Down
5 changes: 2 additions & 3 deletions x/ibc/03-connection/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,8 @@ func (chain *TestChain) updateClient(client *TestChain) {
client.App.StakingKeeper.SetHistoricalInfo(ctxClient, client.Header.Height, histInfo)

consensusState := ibctmtypes.ConsensusState{
Height: uint64(client.Header.Height),
// FIXME: currently commented out due to time normalisation issues.
//Timestamp: client.Header.Time,
Height: uint64(client.Header.Height),
Timestamp: client.Header.Time,
Root: commitmenttypes.NewMerkleRoot(commitID.Hash),
ValidatorSet: client.Vals,
}
Expand Down

0 comments on commit 01ccc21

Please sign in to comment.