mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Increase LevelDB write cache size
This commit is contained in:
@@ -27,6 +27,7 @@ impl<E: EthSpec> LevelDB<E> {
|
|||||||
let mut options = Options::new();
|
let mut options = Options::new();
|
||||||
|
|
||||||
options.create_if_missing = true;
|
options.create_if_missing = true;
|
||||||
|
options.write_buffer_size = Some(512 * 1024 * 1024);
|
||||||
|
|
||||||
let db = Database::open(path, options)?;
|
let db = Database::open(path, options)?;
|
||||||
let transaction_mutex = Mutex::new(());
|
let transaction_mutex = Mutex::new(());
|
||||||
|
|||||||
Reference in New Issue
Block a user