Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): change defaults for batching #2383

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions crates/server-config/src/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,15 @@ pub fn default_proof_poll_period() -> Duration {
}

pub fn default_min_batch_count() -> usize {
// Wait for at least 5 proofs before sending the tx to reduce TPS
5
1
}

pub fn default_max_batch_count() -> usize {
// 30 is the default minimal proof count per CU on the mainnet
30
4
}

pub fn default_max_proof_batch_size() -> usize {
// 128 is the average CU number on a single machine
128
2
}

pub fn default_epoch_end_window() -> Duration {
Expand Down
Loading