Search in sources :

Example 1 with WorldStatePreimageStorage

use of org.hyperledger.besu.ethereum.worldstate.WorldStatePreimageStorage in project besu by hyperledger.

the class BesuCommand method createPrivateWorldStateArchive.

public WorldStateArchive createPrivateWorldStateArchive(final StorageProvider storageProvider) {
    final WorldStateStorage privateWorldStateStorage = storageProvider.createPrivateWorldStateStorage();
    final WorldStatePreimageStorage preimageStorage = storageProvider.createPrivateWorldStatePreimageStorage();
    return new DefaultWorldStateArchive(privateWorldStateStorage, preimageStorage);
}
Also used : WorldStateStorage(org.hyperledger.besu.ethereum.worldstate.WorldStateStorage) DefaultWorldStateArchive(org.hyperledger.besu.ethereum.worldstate.DefaultWorldStateArchive) WorldStatePreimageStorage(org.hyperledger.besu.ethereum.worldstate.WorldStatePreimageStorage)

Aggregations

DefaultWorldStateArchive (org.hyperledger.besu.ethereum.worldstate.DefaultWorldStateArchive)1 WorldStatePreimageStorage (org.hyperledger.besu.ethereum.worldstate.WorldStatePreimageStorage)1 WorldStateStorage (org.hyperledger.besu.ethereum.worldstate.WorldStateStorage)1