-
Notifications
You must be signed in to change notification settings - Fork 295
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
Rosetta Implementation - pt1 (Stage 3.1 of Node API Overhaul) #3297
Conversation
* Update go.mod for rosetta SDK Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* Make go.mod changes minimal Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
28b386b
to
e046938
Compare
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Since we are adding new ports, we should do our best try not to collide our port with well-known services. 10000 is binded with NDMP (https://www.snia.org/ndmp). Can we use another one?
-
You need to consider the backward compatibility of the harmonyConfig structure (It's dumped to the config file along with a version). My suggestions are:
- Increase the version to v1.1.0. (Preferred to import the version module from libp2p)
- If user are still using old version , recommend user to upgrade to config v1.1.0 with command
./harmony dumpconfig harmony.conf
- Add a unit test case to make sure the data loaded from v1.0.0 config file is expected.
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
* Included update message if old config is loaded Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
|
Signed-off-by: Daniel Van Der Maden <dvandermaden0@berkeley.edu>
05d69ae
to
8707e7e
Compare
Stage 3.1 of Node API Overhaul
This PR adds the rosetta server to the node program. The rosetta server is hosted on port 9700 by default on an explorer node. Other nodes can enable rosetta it if they wish, but by default, it is off for all validator nodes.
This PR also outlines the structure of the
rosetta
package to follow the example provided here.The server was tested using rosetta's example client here and passes.
In order to use rosetta's SDK, we must use go-ethereum v1.9.18. As this is not compatible with our current code, I've added a replace in the go.mod file to support go-ethereum v1.8.27 as well. I've also updated/cleaned up the relative packages needed for rosetta's SDK.