From fc72da1d0cc08d0b5b1418c48944ab1e061edc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 26 Nov 2019 18:06:05 +0100 Subject: [PATCH] chain: Pass correct prover to VerifyPost --- chain/sync.go | 2 +- cmd/lotus-seed/main.go | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/chain/sync.go b/chain/sync.go index 8608e717d..73b45fe05 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -643,7 +643,7 @@ func (syncer *Syncer) VerifyElectionPoStProof(ctx context.Context, h *types.Bloc } return xerrors.Errorf("[TESTING] election post was invalid") } - ok, err := sectorbuilder.VerifyPost(ctx, ssize, *sectorInfo, h.EPostProof.PostRand, h.EPostProof.Proof, winners, waddr) + ok, err := sectorbuilder.VerifyPost(ctx, ssize, *sectorInfo, h.EPostProof.PostRand, h.EPostProof.Proof, winners, h.Miner) if err != nil { return xerrors.Errorf("failed to verify election post: %w", err) } diff --git a/cmd/lotus-seed/main.go b/cmd/lotus-seed/main.go index c84761831..d9ea27013 100644 --- a/cmd/lotus-seed/main.go +++ b/cmd/lotus-seed/main.go @@ -145,17 +145,6 @@ var preSealCmd = &cli.Command{ CommD: pco.CommD, SectorID: i, }) - - srand := sha256.Sum256([]byte(c.String("seed-preimage"))) - seed := sectorbuilder.SealSeed{ - TicketBytes: srand, - } - - _, err = sb.SealCommit(i, ticket, seed, []sectorbuilder.PublicPieceInfo{pi}, pco) - if err != nil { - return xerrors.Errorf("commit: %w", err) - } - } output := map[string]genesis.GenesisMiner{