From e5dfbef83a0b4afd68ed6679b444f0b03912b80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 10 Dec 2019 17:55:21 +0100 Subject: [PATCH] genesis: Fix miner power setting --- chain/gen/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/gen/utils.go b/chain/gen/utils.go index e4da3cde2..c707f2242 100644 --- a/chain/gen/utils.go +++ b/chain/gen/utils.go @@ -351,7 +351,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid if err := cst.Get(ctx, mact.Head, &mstate); err != nil { return cid.Undef, nil, xerrors.Errorf("getting miner actor state failed: %w", err) } - mstate.Power = types.BigMul(types.NewInt(build.SectorSizes[0]), types.NewInt(uint64(len(ps.Sectors)))) + mstate.Power = types.BigMul(types.NewInt(ps.SectorSize), types.NewInt(uint64(len(ps.Sectors)))) blks := amt.WrapBlockstore(cs.Blockstore())