chain: Pass correct prover to VerifyPost

This commit is contained in:
Łukasz Magiera 2019-11-26 18:06:05 +01:00
parent 23900964a1
commit fc72da1d0c
2 changed files with 1 additions and 12 deletions

View File

@ -643,7 +643,7 @@ func (syncer *Syncer) VerifyElectionPoStProof(ctx context.Context, h *types.Bloc
} }
return xerrors.Errorf("[TESTING] election post was invalid") 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 { if err != nil {
return xerrors.Errorf("failed to verify election post: %w", err) return xerrors.Errorf("failed to verify election post: %w", err)
} }

View File

@ -145,17 +145,6 @@ var preSealCmd = &cli.Command{
CommD: pco.CommD, CommD: pco.CommD,
SectorID: i, 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{ output := map[string]genesis.GenesisMiner{