@@ -30,6 +30,12 @@ pub struct Config {
30
30
pub event_sources : Vec < EventSourceConfig > ,
31
31
pub limits : LimitsConfig ,
32
32
pub network : IndexerConfig ,
33
+ pub logs : LogConfig ,
34
+ }
35
+
36
+ #[ derive( Clone , Debug ) ]
37
+ pub struct LogConfig {
38
+ pub ordinals_computation : bool ,
33
39
}
34
40
35
41
#[ derive( Clone , Debug ) ]
@@ -223,6 +229,12 @@ impl Config {
223
229
stacks_network,
224
230
bitcoin_network,
225
231
} ,
232
+ logs : LogConfig {
233
+ ordinals_computation : config_file
234
+ . logs
235
+ . and_then ( |l| l. ordinals_computation )
236
+ . unwrap_or ( true ) ,
237
+ } ,
226
238
} ;
227
239
Ok ( config)
228
240
}
@@ -350,6 +362,9 @@ impl Config {
350
362
stacks_network : StacksNetwork :: Devnet ,
351
363
bitcoin_network : BitcoinNetwork :: Regtest ,
352
364
} ,
365
+ logs : LogConfig {
366
+ ordinals_computation : true ,
367
+ } ,
353
368
}
354
369
}
355
370
@@ -379,6 +394,9 @@ impl Config {
379
394
stacks_network : StacksNetwork :: Testnet ,
380
395
bitcoin_network : BitcoinNetwork :: Testnet ,
381
396
} ,
397
+ logs : LogConfig {
398
+ ordinals_computation : true ,
399
+ } ,
382
400
}
383
401
}
384
402
@@ -410,6 +428,9 @@ impl Config {
410
428
stacks_network : StacksNetwork :: Mainnet ,
411
429
bitcoin_network : BitcoinNetwork :: Mainnet ,
412
430
} ,
431
+ logs : LogConfig {
432
+ ordinals_computation : false ,
433
+ } ,
413
434
}
414
435
}
415
436
}
0 commit comments