use of org.hyperledger.besu.ethereum.privacy.storage.migration.PrivateMigrationBlockProcessor in project besu by hyperledger.
the class PrivateStorageMigrationBuilder method build.
public PrivateStorageMigration build() {
final Blockchain blockchain = besuController.getProtocolContext().getBlockchain();
final Address privacyPrecompileAddress = privacyParameters.getPrivacyAddress();
final ProtocolSchedule protocolSchedule = besuController.getProtocolSchedule();
final WorldStateArchive publicWorldStateArchive = besuController.getProtocolContext().getWorldStateArchive();
final PrivateStateStorage privateStateStorage = privacyParameters.getPrivateStateStorage();
final LegacyPrivateStateStorage legacyPrivateStateStorage = privacyParameters.getPrivateStorageProvider().createLegacyPrivateStateStorage();
final PrivateStateRootResolver privateStateRootResolver = privacyParameters.getPrivateStateRootResolver();
return new PrivateStorageMigration(blockchain, privacyPrecompileAddress, protocolSchedule, publicWorldStateArchive, privateStateStorage, privateStateRootResolver, legacyPrivateStateStorage, PrivateMigrationBlockProcessor::new);
}
Aggregations