Skip to content

Commit

Permalink
feat(resharding): set defaults for state split config (#10202)
Browse files Browse the repository at this point in the history
Without the individual defaults for fields it was impossible to set only
some fields while leaving others out. Now by setting only some fields
the rest will get the sensible defaults. It was annoying for mocknet and
would be for node maintainers if they need to adjust this config.
  • Loading branch information
wacban authored Nov 17, 2023
1 parent 4eb4d0d commit 2c7243d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/chain-configs/src/client_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ impl SyncConfig {
}

#[derive(serde::Serialize, serde::Deserialize, Clone, Copy, Debug)]
#[serde(default)]
pub struct StateSplitConfig {
/// The soft limit on the size of a single batch. The batch size can be
/// decreased if resharding is consuming too many resources and interfering
Expand Down

0 comments on commit 2c7243d

Please sign in to comment.