Skip to content

Commit 4198ccd

Browse files
committed
add transaction_hash_numbers_in_rocksdb field to StorageSettings
1 parent f0e5464 commit 4198ccd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/storage/db-api/src/models/metadata.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

2730
impl 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
}

0 commit comments

Comments
 (0)