-
Notifications
You must be signed in to change notification settings - Fork 110
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
rpc: add configuration / status #201
Comments
Thoughts on adding this @albrow? |
@dmvt the Ethereum network id is an environment variable which is required during initialization. It's set by you and will never change unless you change it, so I think there is limited value in having an RPC endpoint for it. An endpoint for getting the block number makes a lot more sense to me. Can you share more about your use case so we can determine how to prioritize this? |
Hey @albrow. I'd like to have the ability to confirm that Mesh and the ETH node being used by an individual application are in sync. The network id being returned by Mesh would allow me to verify on startup that the application has not been directed to connect to a Mesh node on a different network than the ETH node. Likewise, knowing the Mesh node's current block will allow the software to compare it against the RPC endpoint for the ETH node and verify that neither is behind the other (within a tolerance zone). In both cases, error states can trigger proactive notification to devops. It's true that if the entire stack is configured correctly these details are not needed, but I prefer writing guards to protect against bad configuration instead of assuming that people will do things correctly. |
Makes sense. We could also have this endpoint return other information like how many peers you are currently connected to. |
That would be great. Any idea on ETA for this feature? |
@dmvt we're focusing on tech debt and bug fixes at the moment. It would be next week at the earliest. Also, if you or someone else in the community wants to take this on, we would be happy to review a PR. |
@dmvt working on this now. |
I'd like to be able to request the configuration and current status from an rpc endpoint. This would include:
The text was updated successfully, but these errors were encountered: