Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the high spec flag #6354

Merged
merged 11 commits into from
Jan 24, 2024
Prev Previous commit
Next Next commit
spotless
Signed-off-by: Ameziane H <ameziane.hamlat@consensys.net>
  • Loading branch information
ahamlat committed Jan 5, 2024
commit 5363ec2cb652090c3d2e914f4b4cbfb38f0bf397
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import static java.util.stream.Collectors.toUnmodifiableSet;

import org.hyperledger.besu.ethereum.storage.keyvalue.KeyValueSegmentIdentifier;
import org.hyperledger.besu.plugin.services.MetricsSystem;
import org.hyperledger.besu.plugin.services.exception.StorageException;
import org.hyperledger.besu.plugin.services.metrics.OperationTimer;
Expand Down Expand Up @@ -213,7 +212,8 @@ private ColumnFamilyDescriptor createColumnDescriptor(
* @param config RocksDB configuration
* @return Block Base Table configuration
*/
private BlockBasedTableConfig createBlockBasedTableConfig(final SegmentIdentifier segment, final RocksDBConfiguration config) {
private BlockBasedTableConfig createBlockBasedTableConfig(
final SegmentIdentifier segment, final RocksDBConfiguration config) {
final LRUCache cache =
new LRUCache(
config.isHighSpec() && segment.isEligibleToHighSpecFlag()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ public enum TestSegment implements SegmentIdentifier {
this(id, false, false);
}

TestSegment(final byte[] id, final boolean containsStaticData, final boolean eligibleToHighSpecFlag) {
TestSegment(
final byte[] id, final boolean containsStaticData, final boolean eligibleToHighSpecFlag) {
this.id = id;
this.nameAsUtf8 = new String(id, StandardCharsets.UTF_8);
this.containsStaticData = containsStaticData;
Expand All @@ -384,8 +385,6 @@ public boolean containsStaticData() {
public boolean isEligibleToHighSpecFlag() {
return eligibleToHighSpecFlag;
}


}

protected abstract SegmentedKeyValueStorage createSegmentedStore() throws Exception;
Expand Down
Loading