Skip to content

Commit 07f9eda

Browse files
committed
add l1 fee rate multiplier to sequencer config
1 parent f41ebad commit 07f9eda

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/citrea_config/sequencer.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pub struct SequencerConfig {
2121
pub block_production_interval_ms: u64,
2222
/// Bridge system contract initialize function parameters
2323
pub bridge_initialize_params: String,
24+
/// L1 fee rate multiplier
25+
pub l1_fee_rate_multiplier: f64,
2426
/// Configuration for the listen mode sequencer
2527
pub listen_mode_config: Option<ListenModeConfig>,
2628
}
@@ -37,6 +39,7 @@ impl Default for SequencerConfig {
3739
da_update_interval_ms: 100,
3840
mempool_conf: SequencerMempoolConfig::default(),
3941
bridge_initialize_params: PRE_FORK2_BRIDGE_INITIALIZE_PARAMS.to_string(),
42+
l1_fee_rate_multiplier: 1.0,
4043
listen_mode_config: None,
4144
}
4245
}
@@ -127,6 +130,7 @@ mod tests {
127130
base_fee_tx_limit = 100000
128131
base_fee_tx_size = 200
129132
max_account_slots = 16
133+
l1_fee_rate_multiplier = 0.75
130134
"#;
131135

132136
let config_file = create_config_from(config);
@@ -151,6 +155,7 @@ mod tests {
151155
da_update_interval_ms: 1000,
152156
block_production_interval_ms: 1000,
153157
bridge_initialize_params: PRE_FORK2_BRIDGE_INITIALIZE_PARAMS.to_string(),
158+
l1_fee_rate_multiplier: 0.75,
154159
listen_mode_config: None,
155160
};
156161
assert_eq!(config, expected);
@@ -174,6 +179,7 @@ mod tests {
174179
base_fee_tx_limit = 100000
175180
base_fee_tx_size = 200
176181
max_account_slots = 16
182+
l1_fee_rate_multiplier = 1.0
177183
[listen_mode_config]
178184
sequencer_client_url = "http://localhost:8545"
179185
sync_blocks_count = 10
@@ -201,6 +207,7 @@ mod tests {
201207
da_update_interval_ms: 1000,
202208
block_production_interval_ms: 1000,
203209
bridge_initialize_params: PRE_FORK2_BRIDGE_INITIALIZE_PARAMS.to_string(),
210+
l1_fee_rate_multiplier: 1.0,
204211
listen_mode_config: Some(ListenModeConfig {
205212
sequencer_client_url: "http://localhost:8545".to_string(),
206213
sync_blocks_count: 10,

0 commit comments

Comments
 (0)