add block timestamp to journal

This commit is contained in:
whyrusleeping 2020-08-07 14:20:51 -07:00
parent e6c70c19d0
commit d1d4ca65b2

View File

@ -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)