-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use connectivity store to manage connections to endpoints #1603
Comments
@brenzi other specs? |
I think the extrinsic queue is a separate concern, shouldn't mix. Do we need to test rpc endpoints to see if indexing is enabled? Or do we assume hardcoding good endpoints only? Is the set dynamic? Can the user change the endpoint set manually? |
I might suggest randomizing the updated endpoints instead of finding the BEST one and direct all traffic there by this choice |
I think so too.
I think we should hardcode in the beginning, as it is simpler. Yes, I think we should only use endpoints that have offchain indexing enabled. Good point.
I think we should not be dynamic in the beginning. User can choose IMO, but this is also an extension.
This is a good idea, although I would rather do: randomize "good" endpoints, good implying that they are producing blocks and are within close range of the |
We have already several issues regarding fail over connections to endpoints, or tracking block production of our chain, I would like to aggregate those issues here, and formulate an idea for tackling these. I found the currently unused connectivity_store implemented by @azackmatoff. While it doesn't fulfil the all the specs, I believe that this approach is what we want.
Connectivity Store Specs:
bestEndpoint
which is the one with the highest best block number. This endpoint is used for all networking.bestEndpoint
changes, it handles resubscription of all websocket subscriptions.Maybe specs:
The text was updated successfully, but these errors were encountered: