Skip to content

Commit f19e1e5

Browse files
fix(storage-proofs): remove restrictive unseal conditions
1 parent ed3d65d commit f19e1e5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

storage-proofs/src/stacked/proof.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -472,16 +472,6 @@ impl<'a, H: 'static + Hasher, G: 'static + Hasher> StackedDrg<'a, H, G> {
472472
num_bytes: usize,
473473
) -> Result<Vec<u8>> {
474474
ensure!(offset + num_bytes <= data.len(), "Out of bounds");
475-
ensure!(
476-
offset % NODE_SIZE == 0,
477-
"Invalid offset, must be a multiple of {}",
478-
NODE_SIZE
479-
);
480-
ensure!(
481-
num_bytes % NODE_SIZE == 0,
482-
"Invalid num_bytes, must be a multiple of {}",
483-
NODE_SIZE
484-
);
485475

486476
// determine the first window needed to be decoded
487477
let first_window_index = offset / pp.window_size_bytes();

0 commit comments

Comments
 (0)