Search in sources :

Example 1 with StoreConfig

use of com.radixdlt.store.StoreConfig in project radixdlt by radixdlt.

the class BerkeleyLedgerEntryStoreTest method setup.

@Before
public void setup() throws IOException {
    dir = new TemporaryFolder();
    dir.create();
    sut = new BerkeleyLedgerEntryStore(DefaultSerialization.getInstance(), new DatabaseEnvironment(dir.getRoot().getAbsolutePath(), (long) (Runtime.getRuntime().maxMemory() * 0.125)), new StoreConfig(1000), new SystemCountersImpl(0L), Set.of());
}
Also used : DatabaseEnvironment(com.radixdlt.store.DatabaseEnvironment) SystemCountersImpl(com.radixdlt.counters.SystemCountersImpl) TemporaryFolder(org.junit.rules.TemporaryFolder) StoreConfig(com.radixdlt.store.StoreConfig) Before(org.junit.Before)

Aggregations

SystemCountersImpl (com.radixdlt.counters.SystemCountersImpl)1 DatabaseEnvironment (com.radixdlt.store.DatabaseEnvironment)1 StoreConfig (com.radixdlt.store.StoreConfig)1 Before (org.junit.Before)1 TemporaryFolder (org.junit.rules.TemporaryFolder)1