aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus-timestamp.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-09-19 18:48:41 +0800
committermissionliao <38416648+missionliao@users.noreply.github.com>2018-09-19 18:48:41 +0800
commit22e70f6da486ed6796a493f25e04679b9afa1439 (patch)
tree41998daa892812957daa58d7fe84d6fd06f4327c /core/consensus-timestamp.go
parenta2a733e6f98018cb2ecc4b3982386be8892d7433 (diff)
downloaddexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar
dexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.gz
dexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.bz2
dexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.lz
dexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.xz
dexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.tar.zst
dexon-consensus-22e70f6da486ed6796a493f25e04679b9afa1439.zip
core: rename Notary (Acks) to Witness (#118)
Diffstat (limited to 'core/consensus-timestamp.go')
-rw-r--r--core/consensus-timestamp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/consensus-timestamp.go b/core/consensus-timestamp.go
index 62bdf0c..c43ca82 100644
--- a/core/consensus-timestamp.go
+++ b/core/consensus-timestamp.go
@@ -44,7 +44,7 @@ func newConsensusTimestamp() *consensusTimestamp {
func (ct *consensusTimestamp) processBlocks(blocks []*types.Block) (err error) {
for _, block := range blocks {
if !block.IsGenesis() {
- block.Notary.Timestamp, err = getMedianTime(ct.chainTimestamps)
+ block.Witness.Timestamp, err = getMedianTime(ct.chainTimestamps)
if err != nil {
return
}