Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Enable accounts caching by default
Browse files Browse the repository at this point in the history
  • Loading branch information
carllin authored and sakridge committed Jan 26, 2021
1 parent d1df9da commit 6d2f9a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ args=(
--init-complete-file "$dataDir"/init-completed
--snapshot-compression none
--require-tower
--accounts-db-caching-enabled
)
# shellcheck disable=SC2086
solana-validator "${args[@]}" $SOLANA_RUN_SH_VALIDATOR_ARGS &
Expand Down
8 changes: 4 additions & 4 deletions validator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,9 +1443,9 @@ pub fn main() {
.help("Enable an accounts index, indexed by the selected account field"),
)
.arg(
Arg::with_name("accounts_db_caching_enabled")
.long("accounts-db-caching-enabled")
.help("Enable accounts caching"),
Arg::with_name("accounts_db_caching_disabled")
.long("accounts-db-caching-disabled")
.help("Disables accounts caching"),
)
.get_matches();

Expand Down Expand Up @@ -1621,7 +1621,7 @@ pub fn main() {
poh_pinned_cpu_core: value_of(&matches, "poh_pinned_cpu_core")
.unwrap_or(poh_service::DEFAULT_PINNED_CPU_CORE),
account_indexes,
accounts_db_caching_enabled: matches.is_present("accounts_db_caching_enabled"),
accounts_db_caching_enabled: !matches.is_present("accounts_db_caching_disabled"),
..ValidatorConfig::default()
};

Expand Down

0 comments on commit 6d2f9a4

Please sign in to comment.