@@ -73,7 +73,6 @@ pub fn get_unsealed_range<T: Into<PathBuf> + AsRef<Path>>(
7373 let pp = public_params (
7474 PaddedBytesAmount :: from ( porep_config) ,
7575 usize:: from ( PoRepProofPartitions :: from ( porep_config) ) ,
76- porep_config. window_size_nodes ,
7776 ) ;
7877
7978 let offset_padded: PaddedBytesAmount = UnpaddedBytesAmount :: from ( offset) . into ( ) ;
@@ -289,9 +288,7 @@ mod tests {
289288 use storage_proofs:: fr32:: bytes_into_fr;
290289 use tempfile:: NamedTempFile ;
291290
292- use crate :: constants:: {
293- SECTOR_SIZE_ONE_KIB , SINGLE_PARTITION_PROOF_LEN , WINDOW_SIZE_NODES_ONE_KIB ,
294- } ;
291+ use crate :: constants:: { SECTOR_SIZE_ONE_KIB , SINGLE_PARTITION_PROOF_LEN } ;
295292 use crate :: types:: { PoStConfig , SectorSize } ;
296293
297294 static INIT_LOGGER : Once = Once :: new ( ) ;
@@ -316,7 +313,6 @@ mod tests {
316313 PoRepConfig {
317314 sector_size : SectorSize ( SECTOR_SIZE_ONE_KIB ) ,
318315 partitions : PoRepProofPartitions ( 2 ) ,
319- window_size_nodes : WINDOW_SIZE_NODES_ONE_KIB ,
320316 } ,
321317 not_convertible_to_fr_bytes,
322318 convertible_to_fr_bytes,
@@ -345,7 +341,6 @@ mod tests {
345341 PoRepConfig {
346342 sector_size : SectorSize ( SECTOR_SIZE_ONE_KIB ) ,
347343 partitions : PoRepProofPartitions ( 2 ) ,
348- window_size_nodes : WINDOW_SIZE_NODES_ONE_KIB ,
349344 } ,
350345 convertible_to_fr_bytes,
351346 not_convertible_to_fr_bytes,
@@ -393,7 +388,6 @@ mod tests {
393388 let result = verify_post (
394389 PoStConfig {
395390 sector_size : SectorSize ( SECTOR_SIZE_ONE_KIB ) ,
396- window_size_nodes : WINDOW_SIZE_NODES_ONE_KIB ,
397391 } ,
398392 & [ 0 ; 32 ] ,
399393 1 ,
@@ -424,7 +418,6 @@ mod tests {
424418 let rng = & mut XorShiftRng :: from_seed ( crate :: TEST_SEED ) ;
425419
426420 let sector_size = SECTOR_SIZE_ONE_KIB ;
427- let window_size_nodes = WINDOW_SIZE_NODES_ONE_KIB ;
428421
429422 let number_of_bytes_in_piece =
430423 UnpaddedBytesAmount :: from ( PaddedBytesAmount ( sector_size. clone ( ) ) ) ;
@@ -456,7 +449,6 @@ mod tests {
456449 let config = PoRepConfig {
457450 sector_size : SectorSize ( sector_size. clone ( ) ) ,
458451 partitions : PoRepProofPartitions ( 2 ) ,
459- window_size_nodes,
460452 } ;
461453
462454 let cache_dir = tempfile:: tempdir ( ) . unwrap ( ) ;
0 commit comments