chain: Pass correct prover to VerifyPost
This commit is contained in:
parent
23900964a1
commit
fc72da1d0c
@ -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)
|
||||
}
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user