rchain / rchain-api

Obsoleted in favor of https://github.com/rchain-community/rchain-api. Use at your own risk.
Other
8 stars 4 forks source link

Expose feature the take RNode's pulse #10

Closed JoshOrndorff closed 5 years ago

JoshOrndorff commented 5 years ago

From @JoshOrndorff on August 27, 2018 15:20

An end user may want to ping the connected RNode to make sure it is still alive, and update a dapp's UI or take other appropriate action when it is not. RNode should export another method to do this.

Possible implementation: Use the eval service to evaluate the stopped process (0) and if a response comes back, the node is alive.

Ideally the function would take no args and return bool.

Copied from original issue: JoshOrndorff/RChain-API#6

JoshOrndorff commented 5 years ago

Actually, eval comes from different protos and doesn't guarantee Casper is working anyway. Maybe another service would work better