diff --git a/chain/gen/gen.go b/chain/gen/gen.go index 9c8bfadfb..ef3690a15 100644 --- a/chain/gen/gen.go +++ b/chain/gen/gen.go @@ -557,8 +557,10 @@ func ComputeProof(ctx context.Context, epp ElectionPoStProver, pi *ProofInput) ( PostRand: pi.vrfout, } for _, win := range pi.winners { + part := make([]byte, 32) + copy(part, win.PartialTicket[:]) ept.Candidates = append(ept.Candidates, types.EPostTicket{ - Partial: win.PartialTicket[:], + Partial: part, SectorID: win.SectorID, ChallengeIndex: win.SectorChallengeIndex, }) diff --git a/storage/fpost_run.go b/storage/fpost_run.go index a2cf88810..f3c031279 100644 --- a/storage/fpost_run.go +++ b/storage/fpost_run.go @@ -73,8 +73,10 @@ func (s *fpostScheduler) runPost(ctx context.Context, eps uint64, ts *types.TipS candidates := make([]types.EPostTicket, len(scandidates)) for i, sc := range scandidates { + part := make([]byte, 32) + copy(part, sc.PartialTicket[:]) candidates[i] = types.EPostTicket{ - Partial: sc.PartialTicket[:], + Partial: part, SectorID: sc.SectorID, ChallengeIndex: sc.SectorChallengeIndex, }