-
Notifications
You must be signed in to change notification settings - Fork 248
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
LightClient: Optimize multi-chain usecase #1213
Comments
I'd be interested to know what advantages this offers over having a separate Smoldot instance per chain (@tomaka, do you have any thoughts here; is it better to one one Smoldot instance for several chains or separate instances per chain?). But yup, assuming that using one instance can be advantageous,it'd be nice if we could configure some |
A smoldot |
Ok, thanks! Right now, we use one Smoldot client per chain just because it was the simplest thing to add, but if the resource sharing is meaningful then it does make sense to add the ability to share one Smoldot client for accessing several chains. |
Subxt spawns a background task for handling communication with the lightclient (smoldot).
Currently, users who want to target multiple chains must construct one smoldot instance per chain.
This leads to spawning and handling multiple background tasks.
To optimize this process, subxt could reuse the same background task to handle multi chains.
Investigate if this is feasible without breaking changes in the subxt-API; and extend the communication protocol to support the
AddChain
command.The text was updated successfully, but these errors were encountered: