add block timestamp to journal
This commit is contained in:
parent
e6c70c19d0
commit
d1d4ca65b2
@ -214,10 +214,11 @@ func (m *Miner) mine(ctx context.Context) {
|
|||||||
|
|
||||||
if b != nil {
|
if b != nil {
|
||||||
journal.Add("blockMined", map[string]interface{}{
|
journal.Add("blockMined", map[string]interface{}{
|
||||||
"parents": base.TipSet.Cids(),
|
"parents": base.TipSet.Cids(),
|
||||||
"nulls": base.NullRounds,
|
"nulls": base.NullRounds,
|
||||||
"epoch": b.Header.Height,
|
"epoch": b.Header.Height,
|
||||||
"cid": b.Header.Cid(),
|
"timestamp": b.Header.Timestamp,
|
||||||
|
"cid": b.Header.Cid(),
|
||||||
})
|
})
|
||||||
|
|
||||||
btime := time.Unix(int64(b.Header.Timestamp), 0)
|
btime := time.Unix(int64(b.Header.Timestamp), 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user