From 28f78749422e65e62e12075833005ffc6d19ad18 Mon Sep 17 00:00:00 2001 From: Travis Person Date: Sun, 19 Jul 2020 22:38:52 +0000 Subject: [PATCH] genesis: set deals to end on sector expiry Setting the deal to end on the sector expiry ensures we get the full quality adjustment of power for the full sector. Resolves #2404 --- chain/gen/genesis/miners.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chain/gen/genesis/miners.go b/chain/gen/genesis/miners.go index 26aebc6ed..1897118ef 100644 --- a/chain/gen/genesis/miners.go +++ b/chain/gen/genesis/miners.go @@ -146,6 +146,7 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sroot cid.Cid params := &market.PublishStorageDealsParams{} for _, preseal := range m.Sectors { preseal.Deal.VerifiedDeal = true + preseal.Deal.EndEpoch = minerInfos[i].presealExp params.Deals = append(params.Deals, market.ClientDealProposal{ Proposal: preseal.Deal, ClientSignature: crypto.Signature{Type: crypto.SigTypeBLS}, // TODO: do we want to sign these? Or do we want to fake signatures for genesis setup?