@@ -227,48 +227,63 @@ pub struct ElectraPreset {
227
227
pub min_activation_balance : u64 ,
228
228
#[ serde( with = "serde_utils::quoted_u64" ) ]
229
229
pub max_effective_balance_electra : u64 ,
230
+
230
231
#[ serde( with = "serde_utils::quoted_u64" ) ]
231
232
pub min_slashing_penalty_quotient_electra : u64 ,
232
233
#[ serde( with = "serde_utils::quoted_u64" ) ]
233
234
pub whistleblower_reward_quotient_electra : u64 ,
234
- #[ serde( with = "serde_utils::quoted_u64" ) ]
235
- pub max_pending_partials_per_withdrawals_sweep : u64 ,
235
+
236
236
#[ serde( with = "serde_utils::quoted_u64" ) ]
237
237
pub pending_deposits_limit : u64 ,
238
238
#[ serde( with = "serde_utils::quoted_u64" ) ]
239
239
pub pending_partial_withdrawals_limit : u64 ,
240
240
#[ serde( with = "serde_utils::quoted_u64" ) ]
241
241
pub pending_consolidations_limit : u64 ,
242
- #[ serde( with = "serde_utils::quoted_u64" ) ]
243
- pub max_consolidation_requests_per_payload : u64 ,
244
- #[ serde( with = "serde_utils::quoted_u64" ) ]
245
- pub max_deposit_requests_per_payload : u64 ,
242
+
246
243
#[ serde( with = "serde_utils::quoted_u64" ) ]
247
244
pub max_attester_slashings_electra : u64 ,
248
245
#[ serde( with = "serde_utils::quoted_u64" ) ]
249
246
pub max_attestations_electra : u64 ,
247
+
248
+ #[ serde( with = "serde_utils::quoted_u64" ) ]
249
+ pub max_deposit_requests_per_payload : u64 ,
250
250
#[ serde( with = "serde_utils::quoted_u64" ) ]
251
251
pub max_withdrawal_requests_per_payload : u64 ,
252
+ #[ serde( with = "serde_utils::quoted_u64" ) ]
253
+ pub max_consolidation_requests_per_payload : u64 ,
254
+
255
+ #[ serde( with = "serde_utils::quoted_u64" ) ]
256
+ pub max_pending_partials_per_withdrawals_sweep : u64 ,
257
+
258
+ #[ serde( with = "serde_utils::quoted_u64" ) ]
259
+ pub max_pending_deposits_per_epoch : u64 ,
252
260
}
253
261
254
262
impl ElectraPreset {
255
263
pub fn from_chain_spec < E : EthSpec > ( spec : & ChainSpec ) -> Self {
256
264
Self {
257
265
min_activation_balance : spec. min_activation_balance ,
258
266
max_effective_balance_electra : spec. max_effective_balance_electra ,
267
+
259
268
min_slashing_penalty_quotient_electra : spec. min_slashing_penalty_quotient_electra ,
260
269
whistleblower_reward_quotient_electra : spec. whistleblower_reward_quotient_electra ,
261
- max_pending_partials_per_withdrawals_sweep : spec
262
- . max_pending_partials_per_withdrawals_sweep ,
270
+
263
271
pending_deposits_limit : E :: pending_deposits_limit ( ) as u64 ,
264
272
pending_partial_withdrawals_limit : E :: pending_partial_withdrawals_limit ( ) as u64 ,
265
273
pending_consolidations_limit : E :: pending_consolidations_limit ( ) as u64 ,
266
- max_consolidation_requests_per_payload : E :: max_consolidation_requests_per_payload ( )
267
- as u64 ,
268
- max_deposit_requests_per_payload : E :: max_deposit_requests_per_payload ( ) as u64 ,
274
+
269
275
max_attester_slashings_electra : E :: max_attester_slashings_electra ( ) as u64 ,
270
276
max_attestations_electra : E :: max_attestations_electra ( ) as u64 ,
277
+
278
+ max_deposit_requests_per_payload : E :: max_deposit_requests_per_payload ( ) as u64 ,
271
279
max_withdrawal_requests_per_payload : E :: max_withdrawal_requests_per_payload ( ) as u64 ,
280
+ max_consolidation_requests_per_payload : E :: max_consolidation_requests_per_payload ( )
281
+ as u64 ,
282
+
283
+ max_pending_partials_per_withdrawals_sweep : spec
284
+ . max_pending_partials_per_withdrawals_sweep ,
285
+
286
+ max_pending_deposits_per_epoch : E :: max_pending_deposits_per_epoch ( ) as u64 ,
272
287
}
273
288
}
274
289
}
0 commit comments