aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus-timestamp_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-08-08 11:28:57 +0800
committerGitHub <noreply@github.com>2018-08-08 11:28:57 +0800
commita418ea95c0f5afb50cbb78aedecc68373353d06e (patch)
tree79bee8ef152f58c0b3bbcbe38d4dd537050b72aa /core/consensus-timestamp_test.go
parent3a929b656b6bd5846849fd98dc29ff761db97ed3 (diff)
downloadtangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.tar
tangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.tar.gz
tangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.tar.bz2
tangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.tar.lz
tangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.tar.xz
tangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.tar.zst
tangerine-consensus-a418ea95c0f5afb50cbb78aedecc68373353d06e.zip
crypto: Add crypto module. (#34)
Diffstat (limited to 'core/consensus-timestamp_test.go')
-rw-r--r--core/consensus-timestamp_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/consensus-timestamp_test.go b/core/consensus-timestamp_test.go
index 8a82080..aeba00a 100644
--- a/core/consensus-timestamp_test.go
+++ b/core/consensus-timestamp_test.go
@@ -79,7 +79,7 @@ func fillBlocksTimestamps(blocks []*types.Block, validatorNum int,
func extractTimestamps(blocks []*types.Block) []time.Time {
timestamps := make([]time.Time, len(blocks))
for idx, block := range blocks {
- timestamps[idx] = block.ConsensusTime
+ timestamps[idx] = block.ConsensusInfo.Timestamp
}
return timestamps
}