Get all tests to pass
This commit is contained in:
parent
99a3902c07
commit
fe6d666150
@ -276,7 +276,7 @@ func syncHead(ctx context.Context, api api.FullNode, st *storage, ts *types.TipS
|
|||||||
log.Error(err)
|
log.Error(err)
|
||||||
// Not sure why this would fail, but its probably worth continuing
|
// Not sure why this would fail, but its probably worth continuing
|
||||||
}
|
}
|
||||||
info.power = pow.MinerPower
|
info.power = pow.MinerPower.QualityAdjPower
|
||||||
|
|
||||||
sszs, err := api.StateMinerSectorCount(ctx, k.addr, types.EmptyTSK)
|
sszs, err := api.StateMinerSectorCount(ctx, k.addr, types.EmptyTSK)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -164,7 +164,7 @@ func RecordTipsetStatePoints(ctx context.Context, api api.FullNode, pl *PointLis
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
p = NewPoint("chain.power", power.TotalPower.Int64())
|
p = NewPoint("chain.power", power.TotalPower.QualityAdjPower.Int64())
|
||||||
pl.AddPoint(p)
|
pl.AddPoint(p)
|
||||||
|
|
||||||
miners, err := api.StateListMiners(ctx, tipset.Key())
|
miners, err := api.StateListMiners(ctx, tipset.Key())
|
||||||
@ -174,7 +174,7 @@ func RecordTipsetStatePoints(ctx context.Context, api api.FullNode, pl *PointLis
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
p = NewPoint("chain.miner_power", power.MinerPower.Int64())
|
p = NewPoint("chain.miner_power", power.MinerPower.QualityAdjPower.Int64())
|
||||||
p.AddTag("miner", miner.String())
|
p.AddTag("miner", miner.String())
|
||||||
pl.AddPoint(p)
|
pl.AddPoint(p)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user