File tree 2 files changed +8
-1
lines changed
node/builder/src/components
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ pub struct PoolBuilderConfigOverrides {
52
52
pub minimal_protocol_basefee : Option < u64 > ,
53
53
/// Addresses that will be considered as local. Above exemptions apply.
54
54
pub local_addresses : HashSet < Address > ,
55
+ /// Additional tasks to validate new transactions.
56
+ pub additional_validation_tasks : Option < usize > ,
55
57
}
56
58
57
59
impl PoolBuilderConfigOverrides {
@@ -65,6 +67,7 @@ impl PoolBuilderConfigOverrides {
65
67
max_account_slots,
66
68
minimal_protocol_basefee,
67
69
local_addresses,
70
+ additional_validation_tasks : _,
68
71
} = self ;
69
72
70
73
if let Some ( pending_limit) = pending_limit {
Original file line number Diff line number Diff line change @@ -189,7 +189,11 @@ where
189
189
) )
190
190
. with_head_timestamp ( ctx. head ( ) . timestamp )
191
191
. kzg_settings ( ctx. kzg_settings ( ) ?)
192
- . with_additional_tasks ( ctx. config ( ) . txpool . additional_validation_tasks )
192
+ . with_additional_tasks (
193
+ pool_config_overrides
194
+ . additional_validation_tasks
195
+ . unwrap_or_else ( || ctx. config ( ) . txpool . additional_validation_tasks ) ,
196
+ )
193
197
. build_with_tasks ( ctx. provider ( ) . clone ( ) , ctx. task_executor ( ) . clone ( ) , blob_store. clone ( ) )
194
198
. map ( |validator| {
195
199
OpTransactionValidator :: new ( validator)
You can’t perform that action at this time.
0 commit comments