|
|
@ -54,6 +54,7 @@ import org.hyperledger.besu.ethereum.trie.diffbased.bonsai.cache.BonsaiCachedMer |
|
|
|
import org.hyperledger.besu.ethereum.worldstate.DataStorageConfiguration; |
|
|
|
import org.hyperledger.besu.ethereum.worldstate.DataStorageConfiguration; |
|
|
|
import org.hyperledger.besu.ethereum.worldstate.WorldStateArchive; |
|
|
|
import org.hyperledger.besu.ethereum.worldstate.WorldStateArchive; |
|
|
|
import org.hyperledger.besu.evm.internal.EvmConfiguration; |
|
|
|
import org.hyperledger.besu.evm.internal.EvmConfiguration; |
|
|
|
|
|
|
|
import org.hyperledger.besu.metrics.MetricCategoryRegistryImpl; |
|
|
|
import org.hyperledger.besu.metrics.MetricsSystemModule; |
|
|
|
import org.hyperledger.besu.metrics.MetricsSystemModule; |
|
|
|
import org.hyperledger.besu.metrics.ObservableMetricsSystem; |
|
|
|
import org.hyperledger.besu.metrics.ObservableMetricsSystem; |
|
|
|
import org.hyperledger.besu.metrics.prometheus.MetricsConfiguration; |
|
|
|
import org.hyperledger.besu.metrics.prometheus.MetricsConfiguration; |
|
|
@ -71,6 +72,7 @@ import org.hyperledger.besu.plugin.services.StorageService; |
|
|
|
import org.hyperledger.besu.plugin.services.TransactionPoolValidatorService; |
|
|
|
import org.hyperledger.besu.plugin.services.TransactionPoolValidatorService; |
|
|
|
import org.hyperledger.besu.plugin.services.TransactionSelectionService; |
|
|
|
import org.hyperledger.besu.plugin.services.TransactionSelectionService; |
|
|
|
import org.hyperledger.besu.plugin.services.TransactionSimulationService; |
|
|
|
import org.hyperledger.besu.plugin.services.TransactionSimulationService; |
|
|
|
|
|
|
|
import org.hyperledger.besu.plugin.services.metrics.MetricCategoryRegistry; |
|
|
|
import org.hyperledger.besu.plugin.services.storage.rocksdb.RocksDBPlugin; |
|
|
|
import org.hyperledger.besu.plugin.services.storage.rocksdb.RocksDBPlugin; |
|
|
|
import org.hyperledger.besu.services.BesuConfigurationImpl; |
|
|
|
import org.hyperledger.besu.services.BesuConfigurationImpl; |
|
|
|
import org.hyperledger.besu.services.BesuEventsImpl; |
|
|
|
import org.hyperledger.besu.services.BesuEventsImpl; |
|
|
@ -396,6 +398,12 @@ public class ThreadBesuNodeRunner implements BesuNodeRunner { |
|
|
|
retval.init(blockchain, transactionSimulator); |
|
|
|
retval.init(blockchain, transactionSimulator); |
|
|
|
return retval; |
|
|
|
return retval; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Provides |
|
|
|
|
|
|
|
@Singleton |
|
|
|
|
|
|
|
MetricCategoryRegistryImpl provideMetricCategoryRegistry() { |
|
|
|
|
|
|
|
return new MetricCategoryRegistryImpl(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Module |
|
|
|
@Module |
|
|
@ -476,6 +484,8 @@ public class ThreadBesuNodeRunner implements BesuNodeRunner { |
|
|
|
final RpcEndpointServiceImpl rpcEndpointServiceImpl, |
|
|
|
final RpcEndpointServiceImpl rpcEndpointServiceImpl, |
|
|
|
final BesuConfiguration commonPluginConfiguration, |
|
|
|
final BesuConfiguration commonPluginConfiguration, |
|
|
|
final PermissioningServiceImpl permissioningService, |
|
|
|
final PermissioningServiceImpl permissioningService, |
|
|
|
|
|
|
|
final MetricCategoryRegistryImpl metricCategoryRegistry, |
|
|
|
|
|
|
|
final MetricsSystem metricsSystem, |
|
|
|
final @Named("ExtraCLIOptions") List<String> extraCLIOptions, |
|
|
|
final @Named("ExtraCLIOptions") List<String> extraCLIOptions, |
|
|
|
final @Named("RequestedPlugins") List<String> requestedPlugins) { |
|
|
|
final @Named("RequestedPlugins") List<String> requestedPlugins) { |
|
|
|
final CommandLine commandLine = new CommandLine(CommandSpec.create()); |
|
|
|
final CommandLine commandLine = new CommandLine(CommandSpec.create()); |
|
|
@ -492,6 +502,8 @@ public class ThreadBesuNodeRunner implements BesuNodeRunner { |
|
|
|
TransactionSimulationService.class, transactionSimulationServiceImpl); |
|
|
|
TransactionSimulationService.class, transactionSimulationServiceImpl); |
|
|
|
besuPluginContext.addService(BlockchainService.class, blockchainServiceImpl); |
|
|
|
besuPluginContext.addService(BlockchainService.class, blockchainServiceImpl); |
|
|
|
besuPluginContext.addService(BesuConfiguration.class, commonPluginConfiguration); |
|
|
|
besuPluginContext.addService(BesuConfiguration.class, commonPluginConfiguration); |
|
|
|
|
|
|
|
besuPluginContext.addService(MetricCategoryRegistry.class, metricCategoryRegistry); |
|
|
|
|
|
|
|
besuPluginContext.addService(MetricsSystem.class, metricsSystem); |
|
|
|
|
|
|
|
|
|
|
|
final Path pluginsPath; |
|
|
|
final Path pluginsPath; |
|
|
|
final String pluginDir = System.getProperty("besu.plugins.dir"); |
|
|
|
final String pluginDir = System.getProperty("besu.plugins.dir"); |
|
|
|