From 8fc1ca1107fc0792958beb0fc749737bc7b51522 Mon Sep 17 00:00:00 2001 From: Igor Date: Wed, 2 Aug 2023 13:18:11 -0700 Subject: [PATCH] test no shuffling speed --- types/src/on_chain_config/execution_config.rs | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/types/src/on_chain_config/execution_config.rs b/types/src/on_chain_config/execution_config.rs index f557a3e84b89c..9479fb5de39d7 100644 --- a/types/src/on_chain_config/execution_config.rs +++ b/types/src/on_chain_config/execution_config.rs @@ -17,29 +17,32 @@ pub enum OnChainExecutionConfig { impl OnChainExecutionConfig { /// The type of the transaction shuffler being used. pub fn transaction_shuffler_type(&self) -> TransactionShufflerType { - match &self { - OnChainExecutionConfig::V1(config) => config.transaction_shuffler_type.clone(), - OnChainExecutionConfig::V2(config) => config.transaction_shuffler_type.clone(), - OnChainExecutionConfig::V3(config) => config.transaction_shuffler_type.clone(), - } + TransactionShufflerType::NoShuffling + // match &self { + // OnChainExecutionConfig::V1(config) => config.transaction_shuffler_type.clone(), + // OnChainExecutionConfig::V2(config) => config.transaction_shuffler_type.clone(), + // OnChainExecutionConfig::V3(config) => config.transaction_shuffler_type.clone(), + // } } /// The per-block gas limit being used. pub fn block_gas_limit(&self) -> Option { - match &self { - OnChainExecutionConfig::V1(_config) => None, - OnChainExecutionConfig::V2(config) => config.block_gas_limit, - OnChainExecutionConfig::V3(config) => config.block_gas_limit, - } + None + // match &self { + // OnChainExecutionConfig::V1(_config) => None, + // OnChainExecutionConfig::V2(config) => config.block_gas_limit, + // OnChainExecutionConfig::V3(config) => config.block_gas_limit, + // } } /// The type of the transaction deduper being used. pub fn transaction_deduper_type(&self) -> TransactionDeduperType { - match &self { - OnChainExecutionConfig::V1(_config) => TransactionDeduperType::NoDedup, - OnChainExecutionConfig::V2(_config) => TransactionDeduperType::NoDedup, - OnChainExecutionConfig::V3(config) => config.transaction_deduper_type.clone(), - } + TransactionDeduperType::TxnHashAndAuthenticatorV1 + // match &self { + // OnChainExecutionConfig::V1(_config) => TransactionDeduperType::NoDedup, + // OnChainExecutionConfig::V2(_config) => TransactionDeduperType::NoDedup, + // OnChainExecutionConfig::V3(config) => config.transaction_deduper_type.clone(), + // } } }