Merge pull request #2504 from filecoin-project/feat/elno-in-inf

Add election count to influx
This commit is contained in:
Jakub Sztandera 2020-07-21 19:16:28 +02:00 committed by GitHub
commit 116e34d7ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ func RecordTipsetPoints(ctx context.Context, api api.FullNode, pl *PointList, ti
if err != nil {
return err
}
p := NewPoint("chain.election", 1)
p := NewPoint("chain.election", blockheader.ElectionProof.WinCount)
p.AddTag("miner", blockheader.Miner.String())
pl.AddPoint(p)