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

Add option to enable off-chain worker in SubxtClientConfig #275

Closed
sander2 opened this issue May 4, 2021 · 1 comment
Closed

Add option to enable off-chain worker in SubxtClientConfig #275

sander2 opened this issue May 4, 2021 · 1 comment

Comments

@sander2
Copy link
Contributor

sander2 commented May 4, 2021

To enable off-chain workers in integration tests, you need to manually edit the parachain config, as such:

let mut service_config = config.into_service_config();
service_config.offchain_worker.enabled = true;
let (task_manager, rpc_handlers) = btc_parachain_service::new_full(service_config).unwrap();
SubxtClient::new(task_manager, rpc_handlers);

It would be convenient if SubxtClientConfig contained an option to enable off-chain workers, so that you can use the normal SubxtClient::from_config instead of the above. It's honestly not a super big deal, but it'd help a lot in discoverability.

@ascjones
Copy link
Contributor

ascjones commented Nov 8, 2021

client has been removed as part of #294

@ascjones ascjones closed this as completed Nov 8, 2021
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

No branches or pull requests

2 participants