From bcf7d396322efae599d03ad7948500e01104e3fb Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Tue, 16 Oct 2018 15:56:07 +0800 Subject: core: set genesis block finalization timestamp to zero time (#213) --- core/consensus-timestamp.go | 2 ++ 1 file changed, 2 insertions(+) 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 { -- cgit v1.2.3