15 std::shared_ptr<offchain::OffchainWorkerFactory> ocw_factory,
16 std::shared_ptr<Executor> executor)
17 : app_config_(app_config),
18 ocw_factory_(
std::move(ocw_factory)),
19 executor_(
std::move(executor)) {
30 return outcome::success();
38 return outcome::success();
44 auto res = worker->run();
virtual OffchainWorkerMode offchainWorkerMode() const =0
struct kagome::network::Roles::@11 flags
virtual network::Roles roles() const =0
OffchainWorkerApiImpl(const application::AppConfiguration &app_config, std::shared_ptr< offchain::OffchainWorkerFactory > ocw_factory, std::shared_ptr< Executor > executor)
std::shared_ptr< offchain::OffchainWorkerFactory > ocw_factory_
const application::AppConfiguration & app_config_
outcome::result< void > offchain_worker(const primitives::BlockHash &block, const primitives::BlockHeader &header) override
calls offchain_worker method of OffchainWorker runtime api
std::shared_ptr< Executor > executor_