[ZK Stack] - How to aggregate more tx per batch #572
-
Module Affected
Rust Version1.75.0 Operating System
Issue DescriptionWe are currently experiencing a bot farm executing multiple tx/second on our chain. Which setting can we change to aggregate more tx per batch? Expected BehaviorBatches contain more trsnsactions and seal slower (every X minutes instead of every X seconds). Current BehaviorBatches seal every 5-10 seconds resulting in batches that can't be executed fast enough on L1 to keep up with the L2 tx. Repository Link (if applicable)No response Additional DetailsTx and batches can be monitored here: https://albireo-explorer.playfi.ai Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I guess one of these settings need to be changed:
|
Beta Was this translation helpful? Give feedback.
First, I am not from zksync company, just a dev from community.
Second, to aggregate more txs, CHAIN_STATE_KEEPER_BLOCK_COMMIT_DEADLINE_MS is set to be larger to have more blocks before sealing batch. CHAIN_STATE_KEEPER_TRANSACTION_SLOTS is set to be max txs number in every batch.