diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-16 15:56:07 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-16 15:56:07 +0800 |
commit | bcf7d396322efae599d03ad7948500e01104e3fb (patch) | |
tree | 9cd815af82c3834468fd828c0ad4637a0abd05d2 | |
parent | 15be90c811e6fc6324033b482320da0e5fa694e5 (diff) | |
download | dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.tar dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.tar.gz dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.tar.bz2 dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.tar.lz dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.tar.xz dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.tar.zst dexon-consensus-bcf7d396322efae599d03ad7948500e01104e3fb.zip |
core: set genesis block finalization timestamp to zero time (#213)
-rw-r--r-- | core/consensus-timestamp.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/consensus-timestamp.go b/core/consensus-timestamp.go index 55a6a9e..1822f74 100644 --- a/core/consensus-timestamp.go +++ b/core/consensus-timestamp.go @@ -65,6 +65,8 @@ func (ct *consensusTimestamp) processBlocks(blocks []*types.Block) (err error) { getMedianTime(ct.chainTimestamps); err != nil { return } + } else { + block.Finalization.Timestamp = time.Time{} } for uint32(len(ct.chainTimestamps)) <= block.Position.ChainID { |