Search in sources :

Example 1 with ExecutionEngineChannel

use of tech.pegasys.teku.spec.executionengine.ExecutionEngineChannel 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;
}
Also used : ThrottlingExecutionEngineChannel(tech.pegasys.teku.ethereum.executionlayer.ThrottlingExecutionEngineChannel) ExecutionEngineChannel(tech.pegasys.teku.spec.executionengine.ExecutionEngineChannel) ThrottlingExecutionEngineChannel(tech.pegasys.teku.ethereum.executionlayer.ThrottlingExecutionEngineChannel)

Aggregations

ThrottlingExecutionEngineChannel (tech.pegasys.teku.ethereum.executionlayer.ThrottlingExecutionEngineChannel)1 ExecutionEngineChannel (tech.pegasys.teku.spec.executionengine.ExecutionEngineChannel)1