Get all tests to pass

This commit is contained in:
Łukasz Magiera 2020-04-18 01:14:39 +02:00
parent 99a3902c07
commit fe6d666150
2 changed files with 3 additions and 3 deletions

View File

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

View File

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