@@ -60,6 +60,12 @@ pub struct SequencerMempoolConfig {
60
60
pub base_fee_tx_size : u64 ,
61
61
/// Max number of executable transaction slots guaranteed per account
62
62
pub max_account_slots : u64 ,
63
+ /// Maximum reorg depth for mempool updates (default: 64 blocks = 2 epochs)
64
+ pub max_update_depth : Option < u64 > ,
65
+ /// Maximum accounts to reload from state at once (default: 100)
66
+ pub max_reload_accounts : Option < usize > ,
67
+ /// Maximum lifetime for non-executable transactions in seconds (default: 10800 = 3 hours)
68
+ pub max_tx_lifetime_secs : Option < u64 > ,
63
69
}
64
70
65
71
impl Default for SequencerMempoolConfig {
@@ -72,6 +78,9 @@ impl Default for SequencerMempoolConfig {
72
78
base_fee_tx_limit : 100_000 ,
73
79
base_fee_tx_size : 200 ,
74
80
max_account_slots : 16 ,
81
+ max_update_depth : None ,
82
+ max_reload_accounts : None ,
83
+ max_tx_lifetime_secs : None ,
75
84
}
76
85
}
77
86
}
@@ -147,6 +156,9 @@ mod tests {
147
156
base_fee_tx_limit : 100000 ,
148
157
base_fee_tx_size : 200 ,
149
158
max_account_slots : 16 ,
159
+ max_update_depth : None ,
160
+ max_reload_accounts : None ,
161
+ max_tx_lifetime_secs : None ,
150
162
} ,
151
163
da_update_interval_ms : 1000 ,
152
164
block_production_interval_ms : 1000 ,
@@ -197,6 +209,9 @@ mod tests {
197
209
base_fee_tx_limit : 100000 ,
198
210
base_fee_tx_size : 200 ,
199
211
max_account_slots : 16 ,
212
+ max_update_depth : None ,
213
+ max_reload_accounts : None ,
214
+ max_tx_lifetime_secs : None ,
200
215
} ,
201
216
da_update_interval_ms : 1000 ,
202
217
block_production_interval_ms : 1000 ,
0 commit comments