Skip to content

Commit

Permalink
Oh no, snap is outputting corrupted metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Sep 6, 2024
1 parent eb0d97a commit f257707
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/snap/task_submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ func (s *SubmitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done
if err != nil {
return false, xerrors.Errorf("parsing new sealed cid: %w", err)
}
newUnsealedCID, err := cid.Parse(update.UpdateUnsealedCID)
if err != nil {
return false, xerrors.Errorf("parsing new unsealed cid: %w", err)
}

// Prepare params
params := miner.ProveReplicaUpdates3Params{
Expand Down Expand Up @@ -369,7 +373,7 @@ func (s *SubmitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done
return false, xerrors.Errorf("inserting into message_waits: %w", err)
}

if err := s.transferUpdatedSectorData(ctx, update.SpID, update.SectorNumber, newSealedCID, cid.Undef, mcid); err != nil {
if err := s.transferUpdatedSectorData(ctx, update.SpID, update.SectorNumber, newUnsealedCID, newSealedCID, mcid); err != nil {
return false, xerrors.Errorf("updating sector meta: %w", err)
}

Expand Down

0 comments on commit f257707

Please sign in to comment.