Skip to content
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

Genesis port script for 0.34 #4018

Closed
cwgoes opened this issue Apr 2, 2019 · 3 comments
Closed

Genesis port script for 0.34 #4018

cwgoes opened this issue Apr 2, 2019 · 3 comments
Assignees
Labels
tooling dev tooling within the sdk
Milestone

Comments

@cwgoes
Copy link
Contributor

cwgoes commented Apr 2, 2019

Write a script, in Golang, using the old genesis type and new genesis type, to convert an export from the current Cosmos Hub mainnet to the correct import format for 0.34 after the transfers-enablement hard fork.

Note the parameter changes per this proposal draft, which I think are accurate.

Ref #3880

Should result in an actual executable, which can be run as such:

gaiad export | genesis-port [chain-id] [start-time] > new_genesis.json

cc @jackzampolin @rigelrozanski Anything I missed?

@cwgoes cwgoes added the tooling dev tooling within the sdk label Apr 2, 2019
@cwgoes cwgoes added this to the v0.34.0 milestone Apr 2, 2019
@alexanderbez
Copy link
Contributor

Looks reasonable to me.

@fedekunze
Copy link
Collaborator

fedekunze commented Apr 2, 2019

the genesis file gets printed to stdout via fmt.Println. Imo that's a huge amount of lines. Would it be better to write the export genesis into a JSON which can be used as a path for the port command ?

@alexanderbez
Copy link
Contributor

alexanderbez commented Apr 2, 2019

I see no harm in printing to STDOUT -- it's what export does. Optionally, your script can take a flag --output/-o [file] which writes it to file instead of STDOUT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling dev tooling within the sdk
Projects
None yet
Development

No branches or pull requests

3 participants