Skip to content

Allow either backend to be used in light client code#1455

Closed
jsdw wants to merge 2 commits intomasterfrom
jsdw-lightclient-from-backend
Closed

Allow either backend to be used in light client code#1455
jsdw wants to merge 2 commits intomasterfrom
jsdw-lightclient-from-backend

Conversation

@jsdw
Copy link
Copy Markdown
Collaborator

@jsdw jsdw commented Feb 27, 2024

I don't really like that this needs a new trait etc, and so I think this hints that there's a cleaner way to go about this whole thing.

The light client interface is really just an RpcClient at the end of the day, so maybe it was wrong to go about having a LightClient struct, which is essentially just a wrapper around OnlineClient anyway (this was my idea, so my bad :)).

Maybe the light client APIs should be just focused around creating an RpcClient to talk to whatever chain, and then we add some of the light client functions as high level helpers to OnlineClient (and then people can alternately create a custom backend with custom RPC client etc to make one instead).

@jsdw
Copy link
Copy Markdown
Collaborator Author

jsdw commented Mar 13, 2024

Closed in favoru of #1475

@jsdw jsdw closed this Mar 13, 2024
@jsdw jsdw deleted the jsdw-lightclient-from-backend branch June 3, 2025 11:43
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.

1 participant