@@ -83,6 +83,7 @@ impl Config {
8383 reseal_on_external_parcel,
8484 reseal_min_period : Duration :: from_millis ( self . mining . reseal_min_period . unwrap ( ) ) ,
8585 reseal_max_period : Duration :: from_millis ( self . mining . reseal_max_period . unwrap ( ) ) ,
86+ no_reseal_timer : self . mining . no_reseal_timer . unwrap ( ) ,
8687 work_queue_size : self . mining . work_queue_size . unwrap ( ) ,
8788 } )
8889 }
@@ -218,6 +219,7 @@ pub struct Mining {
218219 pub reseal_on_txs : Option < String > ,
219220 pub reseal_min_period : Option < u64 > ,
220221 pub reseal_max_period : Option < u64 > ,
222+ pub no_reseal_timer : Option < bool > ,
221223 pub work_queue_size : Option < usize > ,
222224}
223225
@@ -375,6 +377,9 @@ impl Mining {
375377 if other. reseal_max_period . is_some ( ) {
376378 self . reseal_max_period = other. reseal_max_period ;
377379 }
380+ if other. no_reseal_timer . is_some ( ) {
381+ self . no_reseal_timer = other. no_reseal_timer ;
382+ }
378383 if other. work_queue_size . is_some ( ) {
379384 self . work_queue_size = other. work_queue_size ;
380385 }
@@ -412,6 +417,9 @@ impl Mining {
412417 if let Some ( reseal_max_period) = matches. value_of ( "reseal-max-period" ) {
413418 self . reseal_max_period = Some ( reseal_max_period. parse ( ) . map_err ( |_| "Invalid period" ) ?) ;
414419 }
420+ if matches. is_present ( "no-reseal-timer" ) {
421+ self . no_reseal_timer = Some ( true ) ;
422+ }
415423 if let Some ( work_queue_size) = matches. value_of ( "work-queue-size" ) {
416424 self . work_queue_size = Some ( work_queue_size. parse ( ) . map_err ( |_| "Invalid size" ) ?) ;
417425 }
0 commit comments