-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Feature]: Make Rosetta only get compiled under a build flag #16402
Comments
This seems like something that should be done at the app level? Not adding the command when using a specific build tag. btw, rosetta will most probably be extracted somewhere else: #16394, so the flow may be a bit weird if it isn't done at app level. |
rosetta will be pulled out of the binary and only run in standalone mode going forward. Closing this for now, also this issue is more for apps than the sdk as if we do the flag apps will need to do it as well |
You can have the build flag at the rosetta library, so then the flag is standardized no? How do you get convergent standards, without it being in the rosetta source repo, and demonstrated in the example app? |
The standards supported by rosetta are only for chains they would like to implement, otherwise all chains have to implement their own that work from the types provided. Is that what you are asking? |
Summary
Right now all node binaries contain Rosetta code. Ideally we can get the rosetta code to be under a build flag, and not built by default for most full nodes. This should give the following benefits to nodes:
osmosisd
. (If build flag not present, no command is added in the respective function call)Problem Definition
Advantages are listed above. The biggest one to me is the root of the CLI being simpler. Faster build times would be nice if it actually holds in practice.
Proposal
ROSETTA
!ROSETTA
, only compile this function (RosettaCommand
)cosmos-sdk/tools/rosetta/cmd/rosetta.go
Line 15 in b3c4e15
install-rosetta
to be easier for people to self-discover there is rosetta support. (It will just run something equivalent toROSETTA=true make install
The text was updated successfully, but these errors were encountered: