File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ impl Default for MonitoringConfig {
5
5
Self {
6
6
check_interval : 1 ,
7
7
history_limit : 100 ,
8
+ max_history_size : 1_000_000 , // Default to 1mb for test
8
9
}
9
10
}
10
11
}
@@ -13,6 +14,7 @@ impl Default for MonitoringConfig {
13
14
pub struct MonitoringConfig {
14
15
pub check_interval : u64 ,
15
16
pub history_limit : usize ,
17
+ pub max_history_size : usize ,
16
18
}
17
19
18
20
/// Runtime configuration for the DA service
@@ -32,5 +34,5 @@ pub struct BitcoinServiceConfig {
32
34
// absolute path to the directory where the txs will be written to
33
35
pub tx_backup_dir : String ,
34
36
35
- pub monitoring : MonitoringConfig ,
37
+ pub monitoring : Option < MonitoringConfig > ,
36
38
}
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ impl Default for FullNodeConfig<BitcoinServiceConfig> {
154
154
. into_path ( )
155
155
. display ( )
156
156
. to_string ( ) ,
157
- monitoring : MonitoringConfig :: default ( ) ,
157
+ monitoring : Some ( MonitoringConfig :: default ( ) ) ,
158
158
} ,
159
159
public_keys : RollupPublicKeys {
160
160
sequencer_public_key : vec ! [
@@ -188,7 +188,7 @@ impl From<BitcoinConfig> for BitcoinServiceConfig {
188
188
network : v. network ,
189
189
da_private_key : None ,
190
190
tx_backup_dir : String :: new ( ) ,
191
- monitoring : Default :: default ( ) ,
191
+ monitoring : Some ( Default :: default ( ) ) ,
192
192
}
193
193
}
194
194
}
You can’t perform that action at this time.
0 commit comments