From d1d4ca65b2de652e917834fc364bf521dfb3e55b Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Fri, 7 Aug 2020 14:20:51 -0700 Subject: [PATCH] add block timestamp to journal --- miner/miner.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/miner/miner.go b/miner/miner.go index a3c80f729..b8bb9e562 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -214,10 +214,11 @@ func (m *Miner) mine(ctx context.Context) { if b != nil { journal.Add("blockMined", map[string]interface{}{ - "parents": base.TipSet.Cids(), - "nulls": base.NullRounds, - "epoch": b.Header.Height, - "cid": b.Header.Cid(), + "parents": base.TipSet.Cids(), + "nulls": base.NullRounds, + "epoch": b.Header.Height, + "timestamp": b.Header.Timestamp, + "cid": b.Header.Cid(), }) btime := time.Unix(int64(b.Header.Timestamp), 0)