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

download genesis automatically with ipfs #1489

Closed
faddat opened this issue May 15, 2022 · 3 comments
Closed

download genesis automatically with ipfs #1489

faddat opened this issue May 15, 2022 · 3 comments

Comments

@faddat
Copy link
Member

faddat commented May 15, 2022

Background

We can't make enough RPC nodes. It is impossible. Plus, we want to make "the signal" unstoppable. This means that eventually, Osmosis and its related DAOs need to ship onto user machines, as desktop apps.

Currently those of us on the "technical side" of the house have all shared the experience of guiding someone through hunting down genesis and seeds.

In fact, many of us have spent days of our lives doing the same. This is counter-productive and bad.

Suggested Design

Osmosis should download its own genesis state by default, and state sync by default, using addresses from the cosmos chain registry. Here's the code:

import "github.com/notional-labs/get"

get.Get(filepath, cid)

Acceptance Criteria

  • State sync needs to work
  • Users should approve of downloading genesis state as a part of the chain binary
  • It should work seamlessly, hundreds of times
  • osmosisd init should no longer be necessary except for validators and others doing "fancy things" with their nodes
  • Need to communicate with Keplr team about wallet security in the context of an electron app.
  • Teams developing applications on Osmosis should be contacted and alerted to the infrastructure-free deployment option
@ValarDragon
Copy link
Member

why isn't get.osmosis.zone the goal we target here?

@faddat
Copy link
Member Author

faddat commented May 15, 2022

...where get.osmosis.zone gives you a .dmg ;)

Most people have a pretty deep cli allergy, but osmosis can run just about anywhere.

I have been thinking about this one, I actually think that it should happen during init instead of after.

I'm going make a PR, but please don't feel any obligation to merge it if you don't feel like it move things forward or if you feel like it adds to many modules. It will likely and a lot of modules, this is something that I do not like about IPFS.

Basically, I would really like features like this all across cosmos.

@faddat faddat changed the title osmosisd start download genesis automatically with ipfs May 19, 2022
@faddat
Copy link
Member Author

faddat commented May 19, 2022

Unfortunately, this is blocked by this:

cosmos/cosmos-sdk#11414

We could mess around with replace statements, but I think it is best to delay this change.

@faddat faddat closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2022
Repository owner moved this from Needs Review 🔍 to Done ✅ in Osmosis Chain Development Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants