use of org.ethereum.db.ReceiptStoreImplV2 in project rskj by rsksmart.
the class RskContext method buildReceiptStore.
protected synchronized ReceiptStore buildReceiptStore() {
checkIfNotClosed();
int receiptsCacheSize = getRskSystemProperties().getReceiptsCacheSize();
KeyValueDataSource ds = LevelDbDataSource.makeDataSource(Paths.get(getRskSystemProperties().databaseDir(), "receipts"));
if (receiptsCacheSize != 0) {
ds = new DataSourceWithCache(ds, receiptsCacheSize);
}
return new ReceiptStoreImplV2(ds);
}
Aggregations