Browse Source

Remove unused field in TransactionProcessingConfig (#5444)

Pankaj Garg 8 months ago
parent
commit
e363f52b5b

+ 0 - 1
core/src/banking_stage/consumer.rs

@@ -643,7 +643,6 @@ impl Consumer {
                     recording_config: ExecutionRecordingConfig::new_single_setting(
                     recording_config: ExecutionRecordingConfig::new_single_setting(
                         transaction_status_sender_enabled
                         transaction_status_sender_enabled
                     ),
                     ),
-                    transaction_account_lock_limit: Some(bank.get_transaction_account_lock_limit()),
                 }
                 }
             ));
             ));
         execute_and_commit_timings.load_execute_us = load_execute_us;
         execute_and_commit_timings.load_execute_us = load_execute_us;

+ 0 - 2
runtime/src/bank.rs

@@ -3241,7 +3241,6 @@ impl Bank {
                     enable_log_recording: true,
                     enable_log_recording: true,
                     enable_return_data_recording: true,
                     enable_return_data_recording: true,
                 },
                 },
-                transaction_account_lock_limit: Some(self.get_transaction_account_lock_limit()),
             },
             },
         );
         );
 
 
@@ -4582,7 +4581,6 @@ impl Bank {
                 log_messages_bytes_limit,
                 log_messages_bytes_limit,
                 limit_to_load_programs: false,
                 limit_to_load_programs: false,
                 recording_config,
                 recording_config,
-                transaction_account_lock_limit: Some(self.get_transaction_account_lock_limit()),
             },
             },
         );
         );
 
 

+ 0 - 2
svm/doc/spec.md

@@ -194,8 +194,6 @@ the transaction processor.
 - `limit_to_load_programs`: Whether to limit the number of programs loaded for
 - `limit_to_load_programs`: Whether to limit the number of programs loaded for
   the transaction batch.
   the transaction batch.
 - `recording_config`: Recording capabilities for transaction execution.
 - `recording_config`: Recording capabilities for transaction execution.
-- `transaction_account_lock_limit`: The max number of accounts that a
-  transaction may lock.
 
 
 ### `LoadAndExecuteSanitizedTransactionsOutput`
 ### `LoadAndExecuteSanitizedTransactionsOutput`
 
 

+ 0 - 1
svm/examples/json-rpc/server/src/rpc_process.rs

@@ -333,7 +333,6 @@ impl JsonRpcRequestProcessor {
                     enable_log_recording: true,
                     enable_log_recording: true,
                     enable_return_data_recording: true,
                     enable_return_data_recording: true,
                 },
                 },
-                transaction_account_lock_limit: Some(64),
             },
             },
         );
         );
 
 

+ 0 - 2
svm/src/transaction_processor.rs

@@ -115,8 +115,6 @@ pub struct TransactionProcessingConfig<'a> {
     pub limit_to_load_programs: bool,
     pub limit_to_load_programs: bool,
     /// Recording capabilities for transaction execution.
     /// Recording capabilities for transaction execution.
     pub recording_config: ExecutionRecordingConfig,
     pub recording_config: ExecutionRecordingConfig,
-    /// The max number of accounts that a transaction may lock.
-    pub transaction_account_lock_limit: Option<usize>,
 }
 }
 
 
 /// Runtime environment for transaction batch processing.
 /// Runtime environment for transaction batch processing.