File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
crates/storage/db-api/src/models Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ pub struct StorageSettings {
2222 /// Whether `StoragesHistory` is stored in `RocksDB`.
2323 #[ serde( default ) ]
2424 pub storages_history_in_rocksdb : bool ,
25+ /// Whether `TransactionHashNumbers` is stored in `RocksDB`.
26+ #[ serde( default ) ]
27+ pub transaction_hash_numbers_in_rocksdb : bool ,
2528}
2629
2730impl StorageSettings {
@@ -35,6 +38,7 @@ impl StorageSettings {
3538 receipts_in_static_files : false ,
3639 transaction_senders_in_static_files : false ,
3740 storages_history_in_rocksdb : false ,
41+ transaction_hash_numbers_in_rocksdb : false ,
3842 }
3943 }
4044
@@ -55,4 +59,10 @@ impl StorageSettings {
5559 self . storages_history_in_rocksdb = value;
5660 self
5761 }
62+
63+ /// Sets the `transaction_hash_numbers_in_rocksdb` flag to the provided value.
64+ pub const fn with_transaction_hash_numbers_in_rocksdb ( mut self , value : bool ) -> Self {
65+ self . transaction_hash_numbers_in_rocksdb = value;
66+ self
67+ }
5868}
You can’t perform that action at this time.
0 commit comments