Skip to content

Commit 278dfdd

Browse files
committed
remove bad options
1 parent e146f23 commit 278dfdd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/storage/store_db/rocksdb.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use ethrex_common::{
1616
use ethrex_trie::{Nibbles, Node, Trie};
1717
use rocksdb::{
1818
BlockBasedOptions, BoundColumnFamily, ColumnFamilyDescriptor, DBWithThreadMode, MultiThreaded,
19-
Options, SliceTransform, WriteBatch, checkpoint::Checkpoint,
19+
Options, WriteBatch, checkpoint::Checkpoint,
2020
};
2121
use std::{
2222
collections::HashSet,
@@ -282,12 +282,9 @@ impl Store {
282282
cf_opts.set_target_file_size_base(256 * 1024 * 1024); // 256MB
283283
cf_opts.set_memtable_prefix_bloom_ratio(0.2); // Bloom filter
284284

285-
cf_opts.set_prefix_extractor(SliceTransform::create_fixed_prefix(65));
286285
let mut block_opts = BlockBasedOptions::default();
287286
block_opts.set_block_size(16 * 1024); // 16KB
288287
block_opts.set_bloom_filter(10.0, false); // 10 bits per key
289-
block_opts.set_index_type(rocksdb::BlockBasedIndexType::HashSearch);
290-
block_opts.set_data_block_index_type(rocksdb::DataBlockIndexType::BinaryAndHash);
291288
cf_opts.set_block_based_table_factory(&block_opts);
292289
}
293290
CF_RECEIPTS | CF_ACCOUNT_CODES => {

0 commit comments

Comments
 (0)