diff --git a/runtime/src/accounts_db.rs b/runtime/src/accounts_db.rs index 5d1f1fc187..10e396126c 100644 --- a/runtime/src/accounts_db.rs +++ b/runtime/src/accounts_db.rs @@ -1407,7 +1407,8 @@ impl AccountsDb { } } - pub fn new(paths: Vec, cluster_type: &ClusterType) -> Self { + pub fn new_for_tests(paths: Vec, cluster_type: &ClusterType) -> Self { + // will diverge AccountsDb::new_with_config( paths, cluster_type, @@ -1417,11 +1418,6 @@ impl AccountsDb { ) } - pub fn new_for_tests(paths: Vec, cluster_type: &ClusterType) -> Self { - // will diverge - Self::new(paths, cluster_type) - } - pub fn new_with_config( paths: Vec, cluster_type: &ClusterType, @@ -6186,6 +6182,10 @@ impl AccountsDb { #[cfg(test)] impl AccountsDb { + pub fn new(paths: Vec, cluster_type: &ClusterType) -> Self { + Self::new_for_tests(paths, cluster_type) + } + pub fn new_sized(paths: Vec, file_size: u64) -> Self { AccountsDb { file_size,