use of tech.pegasys.teku.ethereum.executionlayer.ThrottlingExecutionEngineChannel in project teku by ConsenSys.
the class ExecutionEngineService method doStart.
@Override
protected SafeFuture<?> doStart() {
final String endpoint = config.getEndpoint();
LOG.info("Using execution engine at {}", endpoint);
final ExecutionEngineChannel executionEngine = new ThrottlingExecutionEngineChannel(ExecutionEngineChannelImpl.create(endpoint, config.getSpec(), timeProvider, config.getVersion(), config.getJwtSecretFile(), beaconDataDirectory), MAXIMUM_CONCURRENT_EE_REQUESTS, metricsSystem);
eventChannels.subscribe(ExecutionEngineChannel.class, executionEngine);
return SafeFuture.COMPLETE;
}
Aggregations