Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: offchain worker #1866

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Refactor: offchain worker #1866

merged 3 commits into from
Nov 15, 2023

Conversation

xDimon
Copy link
Member

@xDimon xDimon commented Nov 14, 2023

Referenced issues

Needed for #1591 (offchain ticket generating)

Description of the Change

Refactored for ability to launch arbitrary task off-chain

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
core/offchain/impl/runner.hpp Outdated Show resolved Hide resolved
constexpr size_t kMaxThreads = 3;
constexpr size_t kMaxTasks = 1000;

outcome::result<void> callOffchainWorkerApi(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep callOffchainWorkerApi, used to benchmark offchain workers.
(or move everything from OffchainWorkerApiImpl::offchain_worker to caller)

core/api/service/mmr/rpc.cpp Outdated Show resolved Hide resolved
core/api/service/mmr/rpc.cpp Outdated Show resolved Hide resolved
core/offchain/offchain_worker.hpp Show resolved Hide resolved
core/offchain/impl/offchain_worker_impl.cpp Show resolved Hide resolved
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon merged commit 053b5c0 into master Nov 15, 2023
10 checks passed
@xDimon xDimon deleted the refactor/offchain_worker branch November 15, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants