Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3e committed Jan 16, 2025
1 parent b91a1dc commit c66d047
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/fuels-test-helpers/src/node_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use std::{

pub use fuel_core_chain_config::{ChainConfig, StateConfig};

pub(crate) const MAX_DATABASE_CACHE_SIZE: usize = 10 * 1024 * 1024;

#[derive(Clone, Debug)]
pub enum Trigger {
Instant,
Expand Down Expand Up @@ -60,7 +58,7 @@ impl Default for NodeConfig {
fn default() -> Self {
Self {
addr: SocketAddr::new(Ipv4Addr::new(127, 0, 0, 1).into(), 0),
max_database_cache_size: Some(MAX_DATABASE_CACHE_SIZE),
max_database_cache_size: None,
database_type: DbType::InMemory,
utxo_validation: true,
debug: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels-test-helpers/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl FuelService {
database_type: node_config.database_type.into(),
#[cfg(feature = "rocksdb")]
database_config: DatabaseConfig {
cache_capacity: None,
cache_capacity: node_config.max_database_cache_size,
max_fds: 512,
columns_policy: ColumnsPolicy::Lazy,
},
Expand Down

0 comments on commit c66d047

Please sign in to comment.