Skip to content

Commit

Permalink
bigger block size
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxiangzl committed Dec 19, 2024
1 parent 0a068ab commit d4c78ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions config/src/config/consensus_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use serde::{Deserialize, Serialize};
use std::path::PathBuf;

// NOTE: when changing, make sure to update QuorumStoreBackPressureConfig::backlog_txn_limit_count as well.
const MAX_SENDING_BLOCK_TXNS_AFTER_FILTERING: u64 = 3000;
const MAX_SENDING_BLOCK_TXNS: u64 = 7000;
const MAX_SENDING_BLOCK_TXNS_AFTER_FILTERING: u64 = 5000;
const MAX_SENDING_BLOCK_TXNS: u64 = 12000;
pub(crate) static MAX_RECEIVING_BLOCK_TXNS: Lazy<u64> =
Lazy::new(|| 10000.max(2 * MAX_SENDING_BLOCK_TXNS));
// stop reducing size at this point, so 1MB transactions can still go through
Expand Down
6 changes: 1 addition & 5 deletions testsuite/forge-cli/src/suites/realistic_environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,11 @@ pub(crate) fn realistic_env_sweep_wrap(
pub(crate) fn realistic_env_load_sweep_test() -> ForgeConfig {
realistic_env_sweep_wrap(10, 5, LoadVsPerfBenchmark {
test: Box::new(PerformanceBenchmark),
workloads: Workloads::TPS(vec![1000, 5000, 10000, 12000, 13000, 14000, 15000]),
workloads: Workloads::TPS(vec![14000, 15000, 16000]),
criteria: [
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
(95, 0.9, 1.1, 1.2, 0),
]
.into_iter()
.map(
Expand Down
4 changes: 2 additions & 2 deletions types/src/on_chain_config/execution_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ impl OnChainExecutionConfig {
impl BlockGasLimitType {
pub fn default_for_genesis() -> Self {
BlockGasLimitType::ComplexLimitV1 {
effective_block_gas_limit: 30000,
effective_block_gas_limit: 50000,
execution_gas_effective_multiplier: 1,
io_gas_effective_multiplier: 1,
conflict_penalty_window: 9,
use_granular_resource_group_conflicts: false,
use_module_publishing_block_conflict: true,
block_output_limit: Some(5 * 1024 * 1024),
block_output_limit: Some(8 * 1024 * 1024),
include_user_txn_size_in_block_output: true,
add_block_limit_outcome_onchain: true,
}
Expand Down

0 comments on commit d4c78ad

Please sign in to comment.