Skip to content

Commit

Permalink
get acceptance tests passing
Browse files Browse the repository at this point in the history
Co-Authored-By: CJ Hare <CjHare@users.noreply.github.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
  • Loading branch information
RatanRSur and CjHare committed Sep 17, 2019
1 parent 55e3747 commit 6e5c662
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public RocksDBKeyValuePrivacyStorageFactory(
public String getName() {
return "rocksdb-privacy";
}

@Override
protected Path storagePath(final BesuConfiguration commonConfiguration) {
return commonConfiguration.getStoragePath().resolve(PRIVATE_DATABASE_PATH);
return super.storagePath(commonConfiguration).resolve(PRIVATE_DATABASE_PATH);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public KeyValueStorage create(
}
}
}

protected Path storagePath(final BesuConfiguration commonConfiguration) {
return commonConfiguration.getStoragePath();
}
private void init(final BesuConfiguration commonConfiguration) {
try {
databaseVersion = readDatabaseVersion(commonConfiguration);
Expand All @@ -131,7 +133,7 @@ private void init(final BesuConfiguration commonConfiguration) {
isSegmentIsolationSupported = databaseVersion >= 1;
rocksDBConfiguration =
RocksDBConfigurationBuilder.from(configuration.get())
.databaseDir(commonConfiguration.getStoragePath())
.databaseDir(storagePath(commonConfiguration))
.build();
}

Expand Down

0 comments on commit 6e5c662

Please sign in to comment.