Skip to content

Commit c0cc9ce

Browse files
authored
Merge pull request #5362 from sacherjj/update-capacity-2.1.0
Updating values for 8s blocks
2 parents 912f9bb + e87f1eb commit c0cc9ce

File tree

9 files changed

+52
-52
lines changed

9 files changed

+52
-52
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ lint-smart-contracts:
131131

132132
.PHONY: audit-rs
133133
audit-rs:
134-
$(CARGO) audit --ignore RUSTSEC-2024-0437 --ignore RUSTSEC-2025-0022
134+
$(CARGO) audit --ignore RUSTSEC-2024-0437 --ignore RUSTSEC-2025-0022 --ignore RUSTSEC-2025-0055
135135

136136
.PHONY: audit
137137
audit: audit-rs

resources/integration-test/chainspec.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ maximum_net_message_size = 25_165_824
2727
era_duration = '120 minutes'
2828
# Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the
2929
# minimum height.
30-
minimum_era_height = 20
30+
minimum_era_height = 100
3131
# Minimum difference between a block's and its child's timestamp.
3232
minimum_block_time = '8000 ms'
3333
# Number of slots available in validator auction.
@@ -90,7 +90,7 @@ finders_fee = [1, 5]
9090
# The proportion of baseline rewards going to reward finality signatures specifically.
9191
finality_signature_proportion = [95, 100]
9292
# Lookback interval indicating which past block we are looking at to reward.
93-
signature_rewards_max_delay = 3
93+
signature_rewards_max_delay = 6
9494
# Allows transfers between accounts in the blockchain network.
9595
#
9696
# Setting this to false restricts normal accounts from sending tokens to other accounts, allowing transfers only to administrators.
@@ -188,9 +188,9 @@ max_ttl = '2 hours'
188188
# The maximum number of approvals permitted in a single block.
189189
block_max_approval_count = 2600
190190
# Maximum block size in bytes including transactions contained by the block. 0 means unlimited.
191-
max_block_size = 5_242_880
191+
max_block_size = 2_621_400
192192
# The upper limit of total gas of all transactions in a block.
193-
block_gas_limit = 1_625_000_000_000
193+
block_gas_limit = 812_500_000_000
194194
# The minimum amount in motes for a valid native transfer.
195195
native_transfer_minimum_motes = 2_500_000_000
196196
# The maximum value to which `transaction_acceptor.timestamp_leeway` can be set in the config.toml file.
@@ -216,13 +216,13 @@ vm_casper_v2 = false
216216
# [2] -> Max args length size in bytes for a given transaction in a certain lane
217217
# [3] -> Transaction gas limit for a given transaction in a certain lane
218218
# [4] -> The maximum number of transactions the lane can contain
219-
native_mint_lane = [0, 2048, 1024, 100_000_000, 650]
220-
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 650]
219+
native_mint_lane = [0, 2048, 1024, 100_000_000, 325]
220+
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 325]
221221
install_upgrade_lane = [2, 750_000, 2048, 1_000_000_000_000, 1]
222222
wasm_lanes = [
223223
[3, 750_000, 2048, 1_000_000_000_000, 1],
224224
[4, 131_072, 1024, 100_000_000_000, 2],
225-
[5, 65_536, 512, 5_000_000_000, 80]
225+
[5, 65_536, 512, 5_000_000_000, 40]
226226
]
227227

228228
[transactions.deploy]

resources/integration-test/config-example.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ max_attempts = 3
4646
# Default delay for the control events that have no dedicated delay requirements.
4747
control_logic_default_delay = '1 second'
4848

49-
# Flag which forces the node to resync all of the blocks.
49+
# Flag which forces the node to resync all the blocks.
5050
force_resync = false
5151

5252
# A timeout for the ShutdownForUpgrade state, after which the node will upgrade even if not all
5353
# conditions are satisfied.
5454
shutdown_for_upgrade_timeout = '2 minutes'
5555

5656
# Maximum time a node will wait for an upgrade to commit.
57-
upgrade_timeout = '30 secs'
57+
upgrade_timeout = '30 seconds'
5858

5959
# The node detects when it should do a controlled shutdown when it is in a detectably bad state
6060
# in order to avoid potentially catastrophic uncontrolled crashes. Generally, a node should be
@@ -94,7 +94,7 @@ secret_key_path = '/etc/casper/validator_keys/secret_key.pem'
9494

9595
# The maximum number of blocks by which execution is allowed to lag behind finalization.
9696
# If it is more than that, consensus will pause, and resume once the executor has caught up.
97-
max_execution_delay = 3
97+
max_execution_delay = 6
9898

9999

100100
# =======================================
@@ -112,7 +112,7 @@ log_participation_interval = '1 minute'
112112

113113
# The minimal proposal timeout. Validators wait this long for a proposal to receive a quorum of
114114
# echo messages, before they vote to make the round skippable and move on to the next proposer.
115-
proposal_timeout = '10 seconds'
115+
proposal_timeout = '5 seconds'
116116

117117
# The additional proposal delay that is still considered fast enough, in percent. This should
118118
# take into account variables like empty vs. full blocks, network traffic etc.
@@ -525,7 +525,7 @@ validate_and_store_timeout = '1 minute'
525525
[block_accumulator]
526526

527527
# Block height difference threshold for starting to execute the blocks.
528-
attempt_execution_threshold = 3
528+
attempt_execution_threshold = 6
529529

530530
# Accepted time interval for inactivity in block accumulator.
531531
dead_air_interval = '3 minutes'
@@ -564,7 +564,7 @@ latch_reset_interval = '5 seconds'
564564
#
565565
# A higher value can avoid creating needless validation work on an already-validated proposed
566566
# block, but comes at the cost of increased memory consumption.
567-
max_completed_entries = 3
567+
max_completed_entries = 6
568568

569569

570570
# ==================================

resources/mainnet/chainspec.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ maximum_net_message_size = 25_165_824
2727
era_duration = '120 minutes'
2828
# Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the
2929
# minimum height.
30-
minimum_era_height = 20
30+
minimum_era_height = 100
3131
# Minimum difference between a block's and its child's timestamp.
3232
minimum_block_time = '8000 ms'
3333
# Number of slots available in validator auction.
@@ -90,7 +90,7 @@ finders_fee = [1, 5]
9090
# The proportion of baseline rewards going to reward finality signatures specifically.
9191
finality_signature_proportion = [95, 100]
9292
# Lookback interval indicating which past block we are looking at to reward.
93-
signature_rewards_max_delay = 3
93+
signature_rewards_max_delay = 6
9494
# Allows transfers between accounts in the blockchain network.
9595
#
9696
# Setting this to false restricts normal accounts from sending tokens to other accounts, allowing transfers only to administrators.
@@ -188,9 +188,9 @@ max_ttl = '2 hours'
188188
# The maximum number of approvals permitted in a single block.
189189
block_max_approval_count = 2600
190190
# Maximum block size in bytes including transactions contained by the block. 0 means unlimited.
191-
max_block_size = 5_242_880
191+
max_block_size = 2_621_400
192192
# The upper limit of total gas of all transactions in a block.
193-
block_gas_limit = 1_625_000_000_000
193+
block_gas_limit = 812_500_000_000
194194
# The minimum amount in motes for a valid native transfer.
195195
native_transfer_minimum_motes = 2_500_000_000
196196
# The maximum value to which `transaction_acceptor.timestamp_leeway` can be set in the config.toml file.
@@ -216,13 +216,13 @@ vm_casper_v2 = false
216216
# [2] -> Max args length size in bytes for a given transaction in a certain lane
217217
# [3] -> Transaction gas limit for a given transaction in a certain lane
218218
# [4] -> The maximum number of transactions the lane can contain
219-
native_mint_lane = [0, 2048, 1024, 100_000_000, 650]
220-
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 650]
219+
native_mint_lane = [0, 2048, 1024, 100_000_000, 325]
220+
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 325]
221221
install_upgrade_lane = [2, 750_000, 2048, 1_000_000_000_000, 1]
222222
wasm_lanes = [
223223
[3, 750_000, 2048, 1_000_000_000_000, 1],
224224
[4, 131_072, 1024, 100_000_000_000, 2],
225-
[5, 65_536, 512, 5_000_000_000, 80]
225+
[5, 65_536, 512, 5_000_000_000, 40]
226226
]
227227

228228
[transactions.deploy]

resources/mainnet/config-example.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ secret_key_path = '/etc/casper/validator_keys/secret_key.pem'
9494

9595
# The maximum number of blocks by which execution is allowed to lag behind finalization.
9696
# If it is more than that, consensus will pause, and resume once the executor has caught up.
97-
max_execution_delay = 3
97+
max_execution_delay = 6
9898

9999

100100
# =======================================
@@ -112,7 +112,7 @@ log_participation_interval = '1 minute'
112112

113113
# The minimal proposal timeout. Validators wait this long for a proposal to receive a quorum of
114114
# echo messages, before they vote to make the round skippable and move on to the next proposer.
115-
proposal_timeout = '10 seconds'
115+
proposal_timeout = '5 seconds'
116116

117117
# The additional proposal delay that is still considered fast enough, in percent. This should
118118
# take into account variables like empty vs. full blocks, network traffic etc.
@@ -525,7 +525,7 @@ validate_and_store_timeout = '1 minute'
525525
[block_accumulator]
526526

527527
# Block height difference threshold for starting to execute the blocks.
528-
attempt_execution_threshold = 3
528+
attempt_execution_threshold = 6
529529

530530
# Accepted time interval for inactivity in block accumulator.
531531
dead_air_interval = '3 minutes'
@@ -564,7 +564,7 @@ latch_reset_interval = '5 seconds'
564564
#
565565
# A higher value can avoid creating needless validation work on an already-validated proposed
566566
# block, but comes at the cost of increased memory consumption.
567-
max_completed_entries = 3
567+
max_completed_entries = 6
568568

569569

570570
# ==================================

resources/production/chainspec.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ maximum_net_message_size = 25_165_824
2727
era_duration = '120 minutes'
2828
# Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the
2929
# minimum height.
30-
minimum_era_height = 20
30+
minimum_era_height = 100
3131
# Minimum difference between a block's and its child's timestamp.
3232
minimum_block_time = '8000 ms'
3333
# Number of slots available in validator auction.
@@ -90,7 +90,7 @@ finders_fee = [1, 5]
9090
# The proportion of baseline rewards going to reward finality signatures specifically.
9191
finality_signature_proportion = [95, 100]
9292
# Lookback interval indicating which past block we are looking at to reward.
93-
signature_rewards_max_delay = 3
93+
signature_rewards_max_delay = 6
9494
# Allows transfers between accounts in the blockchain network.
9595
#
9696
# Setting this to false restricts normal accounts from sending tokens to other accounts, allowing transfers only to administrators.
@@ -188,9 +188,9 @@ max_ttl = '2 hours'
188188
# The maximum number of approvals permitted in a single block.
189189
block_max_approval_count = 2600
190190
# Maximum block size in bytes including transactions contained by the block. 0 means unlimited.
191-
max_block_size = 5_242_880
191+
max_block_size = 2_621_400
192192
# The upper limit of total gas of all transactions in a block.
193-
block_gas_limit = 1_625_000_000_000
193+
block_gas_limit = 812_500_000_000
194194
# The minimum amount in motes for a valid native transfer.
195195
native_transfer_minimum_motes = 2_500_000_000
196196
# The maximum value to which `transaction_acceptor.timestamp_leeway` can be set in the config.toml file.
@@ -216,13 +216,13 @@ vm_casper_v2 = false
216216
# [2] -> Max args length size in bytes for a given transaction in a certain lane
217217
# [3] -> Transaction gas limit for a given transaction in a certain lane
218218
# [4] -> The maximum number of transactions the lane can contain
219-
native_mint_lane = [0, 2048, 1024, 100_000_000, 650]
220-
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 650]
219+
native_mint_lane = [0, 2048, 1024, 100_000_000, 325]
220+
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 325]
221221
install_upgrade_lane = [2, 750_000, 2048, 1_000_000_000_000, 1]
222222
wasm_lanes = [
223223
[3, 750_000, 2048, 1_000_000_000_000, 1],
224224
[4, 131_072, 1024, 100_000_000_000, 2],
225-
[5, 65_536, 512, 5_000_000_000, 80]
225+
[5, 65_536, 512, 5_000_000_000, 40]
226226
]
227227

228228
[transactions.deploy]

resources/production/config-example.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ secret_key_path = '/etc/casper/validator_keys/secret_key.pem'
9494

9595
# The maximum number of blocks by which execution is allowed to lag behind finalization.
9696
# If it is more than that, consensus will pause, and resume once the executor has caught up.
97-
max_execution_delay = 3
97+
max_execution_delay = 6
9898

9999

100100
# =======================================
@@ -112,7 +112,7 @@ log_participation_interval = '1 minute'
112112

113113
# The minimal proposal timeout. Validators wait this long for a proposal to receive a quorum of
114114
# echo messages, before they vote to make the round skippable and move on to the next proposer.
115-
proposal_timeout = '10 seconds'
115+
proposal_timeout = '5 seconds'
116116

117117
# The additional proposal delay that is still considered fast enough, in percent. This should
118118
# take into account variables like empty vs. full blocks, network traffic etc.
@@ -525,7 +525,7 @@ validate_and_store_timeout = '1 minute'
525525
[block_accumulator]
526526

527527
# Block height difference threshold for starting to execute the blocks.
528-
attempt_execution_threshold = 3
528+
attempt_execution_threshold = 6
529529

530530
# Accepted time interval for inactivity in block accumulator.
531531
dead_air_interval = '3 minutes'
@@ -564,7 +564,7 @@ latch_reset_interval = '5 seconds'
564564
#
565565
# A higher value can avoid creating needless validation work on an already-validated proposed
566566
# block, but comes at the cost of increased memory consumption.
567-
max_completed_entries = 3
567+
max_completed_entries = 6
568568

569569

570570
# ==================================

resources/testnet/chainspec.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ maximum_net_message_size = 25_165_824
2727
era_duration = '120 minutes'
2828
# Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the
2929
# minimum height.
30-
minimum_era_height = 20
30+
minimum_era_height = 100
3131
# Minimum difference between a block's and its child's timestamp.
3232
minimum_block_time = '8000 ms'
3333
# Number of slots available in validator auction.
@@ -90,7 +90,7 @@ finders_fee = [1, 5]
9090
# The proportion of baseline rewards going to reward finality signatures specifically.
9191
finality_signature_proportion = [95, 100]
9292
# Lookback interval indicating which past block we are looking at to reward.
93-
signature_rewards_max_delay = 3
93+
signature_rewards_max_delay = 6
9494
# Allows transfers between accounts in the blockchain network.
9595
#
9696
# Setting this to false restricts normal accounts from sending tokens to other accounts, allowing transfers only to administrators.
@@ -121,7 +121,7 @@ refund_handling = { type = 'refund', refund_ratio = [75, 100] }
121121
# 'accumulate': fees are accumulated in a special purse and distributed at the end of each era evenly among all
122122
# administrator accounts
123123
# 'burn': fees are burned
124-
fee_handling = { type = 'pay_to_proposer' }
124+
fee_handling = { type = 'burn' }
125125
# If a validator would recieve a validator credit, it cannot exceed this percentage of their total stake.
126126
validator_credit_cap = [1, 5]
127127
# Defines how pricing is handled.
@@ -188,9 +188,9 @@ max_ttl = '2 hours'
188188
# The maximum number of approvals permitted in a single block.
189189
block_max_approval_count = 2600
190190
# Maximum block size in bytes including transactions contained by the block. 0 means unlimited.
191-
max_block_size = 5_242_880
191+
max_block_size = 2_621_400
192192
# The upper limit of total gas of all transactions in a block.
193-
block_gas_limit = 1_625_000_000_000
193+
block_gas_limit = 812_500_000_000
194194
# The minimum amount in motes for a valid native transfer.
195195
native_transfer_minimum_motes = 2_500_000_000
196196
# The maximum value to which `transaction_acceptor.timestamp_leeway` can be set in the config.toml file.
@@ -216,13 +216,13 @@ vm_casper_v2 = false
216216
# [2] -> Max args length size in bytes for a given transaction in a certain lane
217217
# [3] -> Transaction gas limit for a given transaction in a certain lane
218218
# [4] -> The maximum number of transactions the lane can contain
219-
native_mint_lane = [0, 2048, 1024, 100_000_000, 650]
220-
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 650]
219+
native_mint_lane = [0, 2048, 1024, 100_000_000, 325]
220+
native_auction_lane = [1, 3096, 2048, 2_500_000_000, 325]
221221
install_upgrade_lane = [2, 750_000, 2048, 1_000_000_000_000, 1]
222222
wasm_lanes = [
223223
[3, 750_000, 2048, 1_000_000_000_000, 1],
224224
[4, 131_072, 1024, 100_000_000_000, 2],
225-
[5, 65_536, 512, 5_000_000_000, 80]
225+
[5, 65_536, 512, 5_000_000_000, 40]
226226
]
227227

228228
[transactions.deploy]
@@ -359,7 +359,7 @@ call_package_version = { cost = 300_000_000, arguments = [0, 0, 0, 0, 0, 0, 0, 1
359359

360360
[wasm.v2]
361361
# Amount of free memory each contract can use for stack.
362-
max_memory = 17
362+
max_memory = 64
363363

364364
[wasm.v2.opcode_costs]
365365
# Bit operations multiplier.

0 commit comments

Comments
 (0)