Skip to content

Commit

Permalink
fix(config): change defaults for batching (#2383)
Browse files Browse the repository at this point in the history
* fix(config): change defaults for batching

* fix: Apply suggestions from code review

---------

Co-authored-by: folex <0xdxdy@gmail.com>
  • Loading branch information
kmd-fl and folex authored Sep 20, 2024
1 parent afc18ee commit d292cf4
Showing 1 changed file with 3 additions and 6 deletions.
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

0 comments on commit d292cf4

Please sign in to comment.