Skip to content
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
8 changes: 8 additions & 0 deletions crates/database/src/states/state_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ impl<DB: Database> StateBuilder<DB> {
self
}

/// Conditionally set BAL builder based on the flag.
pub fn with_bal_builder_if(mut self, enable: bool) -> Self {
if enable {
self.bal_state.bal_builder = Some(Bal::new());
}
self
}

/// Builds the State with the configured settings.
pub fn build(mut self) -> State<DB> {
let use_preloaded_bundle = if self.with_cache_prestate.is_some() {
Expand Down
Loading