Skip to content

Commit

Permalink
test no shuffling speed
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-aptos committed Aug 2, 2023
1 parent 337ff0c commit 8fc1ca1
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions types/src/on_chain_config/execution_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u64> {
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(),
// }
}
}

Expand Down

0 comments on commit 8fc1ca1

Please sign in to comment.