Remove AccessType arg from create_new_ledger (#23591)
Creating a new ledger implicitly means that no other process could have previously held access to it. Additionally, creating a new ledger implicitly requires writing, so it follows that Primary access is required and we can drop access type as an argument.
This commit is contained in:
@@ -13,10 +13,7 @@ use {
|
||||
},
|
||||
solana_entry::poh::compute_hashes_per_tick,
|
||||
solana_genesis::{genesis_accounts::add_genesis_accounts, Base64Account},
|
||||
solana_ledger::{
|
||||
blockstore::create_new_ledger,
|
||||
blockstore_db::{AccessType, BlockstoreAdvancedOptions},
|
||||
},
|
||||
solana_ledger::{blockstore::create_new_ledger, blockstore_db::BlockstoreAdvancedOptions},
|
||||
solana_runtime::hardened_unpack::MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
|
||||
solana_sdk::{
|
||||
account::{Account, AccountSharedData, ReadableAccount, WritableAccount},
|
||||
@@ -632,7 +629,6 @@ fn main() -> Result<(), Box<dyn error::Error>> {
|
||||
&ledger_path,
|
||||
&genesis_config,
|
||||
max_genesis_archive_unpacked_size,
|
||||
AccessType::PrimaryOnly,
|
||||
BlockstoreAdvancedOptions::default(),
|
||||
)?;
|
||||
|
||||
|
Reference in New Issue
Block a user