@@ -147,6 +147,11 @@ pub struct Configuration {
147
147
148
148
/// Time interval at which the signers in [Self::cexplorer_pools_url] will be imported (in minutes).
149
149
pub signer_importer_run_interval : u64 ,
150
+
151
+ /// If set no error is returned in case of unparsable block and an error log is written instead.
152
+ ///
153
+ /// Will be ignored on production networks.
154
+ pub allow_unparsable_block : bool ,
150
155
}
151
156
152
157
/// Uploader needed to copy the snapshot once computed.
@@ -218,6 +223,7 @@ impl Configuration {
218
223
zstandard_parameters : Some ( ZstandardCompressionParameters :: default ( ) ) ,
219
224
cexplorer_pools_url : None ,
220
225
signer_importer_run_interval : 1 ,
226
+ allow_unparsable_block : false ,
221
227
}
222
228
}
223
229
@@ -348,6 +354,11 @@ pub struct DefaultConfiguration {
348
354
349
355
/// Signer importer run interval default setting
350
356
pub signer_importer_run_interval : u64 ,
357
+
358
+ /// If set no error is returned in case of unparsable block and an error log is written instead.
359
+ ///
360
+ /// Will be ignored on production networks.
361
+ pub allow_unparsable_block : String ,
351
362
}
352
363
353
364
impl Default for DefaultConfiguration {
@@ -367,6 +378,7 @@ impl Default for DefaultConfiguration {
367
378
snapshot_compression_algorithm : "zstandard" . to_string ( ) ,
368
379
snapshot_use_cdn_domain : "false" . to_string ( ) ,
369
380
signer_importer_run_interval : 720 ,
381
+ allow_unparsable_block : "false" . to_string ( ) ,
370
382
}
371
383
}
372
384
}
@@ -465,6 +477,13 @@ impl Source for DefaultConfiguration {
465
477
ValueKind :: from ( myself. signer_importer_run_interval ) ,
466
478
) ,
467
479
) ;
480
+ result. insert (
481
+ "allow_unparsable_block" . to_string ( ) ,
482
+ Value :: new (
483
+ Some ( & namespace) ,
484
+ ValueKind :: from ( myself. allow_unparsable_block ) ,
485
+ ) ,
486
+ ) ;
468
487
469
488
Ok ( result)
470
489
}
0 commit comments