aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus-timestamp_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-04 14:56:00 +0800
committerGitHub <noreply@github.com>2018-10-04 14:56:00 +0800
commit149e918f4fc78632483bf549dd8f5ffe55366e18 (patch)
treefeabcb67103d76cc829ea81a1d57735e71db23d8 /core/consensus-timestamp_test.go
parent519cc8a734a510f44463b8dd175b7505f0308a22 (diff)
downloadtangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar
tangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.gz
tangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.bz2
tangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.lz
tangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.xz
tangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.tar.zst
tangerine-consensus-149e918f4fc78632483bf549dd8f5ffe55366e18.zip
core: Check Witness height. Add ConsensusTime and ConsensusHeight to block. (#170)
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 ea85c38..615142c 100644
--- a/core/consensus-timestamp_test.go
+++ b/core/consensus-timestamp_test.go
@@ -82,7 +82,7 @@ func (s *ConsensusTimestampTest) extractTimestamps(
if block.IsGenesis() {
continue
}
- timestamps = append(timestamps, block.Witness.Timestamp)
+ timestamps = append(timestamps, block.ConsensusTimestamp)
}
return timestamps
}