Skip to content

Commit

Permalink
Merge pull request #924 from ipfs-force-community/feat/0x5459/do-not-…
Browse files Browse the repository at this point in the history
…check-filesize

feat(manager): do not check filesize
  • Loading branch information
LinZexiao authored Aug 30, 2023
2 parents b42d334 + 4237181 commit 5ec3ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion damocles-manager/modules/impl/sectors/proving.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (p *Proving) SingleProvable(ctx context.Context, postProofType abi.Register
return fmt.Errorf("stat object %s for %s: %w", p, check.title, err)
}

if sz != 0 {
if sz != 0 && strict {
if st.Size != int64(ssize)*sz {
return fmt.Errorf("%s for %s with wrong size (got %d, expect %d)", p, check.title, st.Size, int64(ssize)*sz)
}
Expand Down

0 comments on commit 5ec3ceb

Please sign in to comment.