Skip to content

Commit

Permalink
Revert "add filler accounts to bloat validator and predict failure (s…
Browse files Browse the repository at this point in the history
…olana-labs#20491)"

This reverts commit 9f04d7f.
  • Loading branch information
frits-metalogix authored Nov 24, 2021
1 parent 6aa073f commit 426b2a9
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 303 deletions.
1 change: 0 additions & 1 deletion core/src/accounts_hash_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ impl AccountsHashVerifier {
HashStats::default(),
false,
None,
None, // this will fail with filler accounts
)
.unwrap();

Expand Down
10 changes: 0 additions & 10 deletions ledger-tool/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -893,12 +893,6 @@ fn main() {
.validator(is_parsable::<usize>)
.takes_value(true)
.help("How much memory the accounts index can consume. If this is exceeded, some account index entries will be stored on disk. If missing, the entire index is stored in memory.");
let accounts_filler_count = Arg::with_name("accounts_filler_count")
.long("accounts-filler-count")
.value_name("COUNT")
.validator(is_parsable::<usize>)
.takes_value(true)
.help("How many accounts to add to stress the system. Accounts are ignored in operations related to correctness.");
let account_paths_arg = Arg::with_name("account_paths")
.long("accounts")
.value_name("PATHS")
Expand Down Expand Up @@ -1223,7 +1217,6 @@ fn main() {
.arg(&limit_load_slot_count_from_snapshot_arg)
.arg(&accounts_index_bins)
.arg(&accounts_index_limit)
.arg(&accounts_filler_count)
.arg(&verify_index_arg)
.arg(&hard_forks_arg)
.arg(&no_accounts_db_caching_arg)
Expand Down Expand Up @@ -1968,12 +1961,9 @@ fn main() {
accounts_index_config.drives = Some(accounts_index_paths);
}

let filler_account_count = value_t!(arg_matches, "accounts_filler_count", usize).ok();

let accounts_db_config = Some(AccountsDbConfig {
index: Some(accounts_index_config),
accounts_hash_cache_path: Some(ledger_path.clone()),
filler_account_count,
});

let process_options = ProcessOptions {
Expand Down
10 changes: 0 additions & 10 deletions ledger/src/bank_forks_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,6 @@ pub fn load(
info!("Snapshots disabled; will load from genesis");
}

if process_options
.accounts_db_config
.as_ref()
.and_then(|config| config.filler_account_count)
.unwrap_or_default()
> 0
{
panic!("filler accounts specified, but not loading from snapshot");
}

load_from_genesis(
genesis_config,
blockstore,
Expand Down
1 change: 0 additions & 1 deletion runtime/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ impl Accounts {
key,
&mut account,
rent_for_sysvars,
self.accounts_db.filler_account_suffix.as_ref(),
);
(account, rent_due)
} else {
Expand Down
Loading

0 comments on commit 426b2a9

Please sign in to comment.