Don't require increased open file limit at ledger creation

Follow-up to 0b92720fdb, `create_new_ledger()` does not require a higher fd limit
This commit is contained in:
Michael Vines 2020-12-17 08:46:13 -08:00
parent 593ad80954
commit e1f2d384db
1 changed files with 1 additions and 1 deletions

View File

@ -3294,7 +3294,7 @@ pub fn create_new_ledger(
genesis_config.write(&ledger_path)?;
// Fill slot 0 with ticks that link back to the genesis_config to bootstrap the ledger.
let blockstore = Blockstore::open_with_access_type(ledger_path, access_type, None, true)?;
let blockstore = Blockstore::open_with_access_type(ledger_path, access_type, None, false)?;
let ticks_per_slot = genesis_config.ticks_per_slot;
let hashes_per_tick = genesis_config.poh_config.hashes_per_tick.unwrap_or(0);
let entries = create_ticks(ticks_per_slot, hashes_per_tick, genesis_config.hash());