-
Notifications
You must be signed in to change notification settings - Fork 277
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
ipfs: move repo intialization to node start instead of in tendermint init
#314
Comments
I don't think doing shadow initialization of IPFS repo is a good idea, instead, if a user wants to start a node with one and only command it is better for him to provide a related bool option, e.g IPFS repo initialization is similar to tm's one where mostly directory and config are created for further operations. Keeping ipfs repo initialization within We should also consider addition of |
That is a good point. Thanks @Wondertan! I also think it is a good idea to add this flag.
I think the problem here is that we have IPFS configs in both files: the tendermint conf and the ipfs conf. I think the IPFS config section in the tendermint should at least be removed. The only thing tendermint needs to know is where the repo (or the real ipfs config) is. Everything else is configured in that very repo. So instead of this: we could have code-only transforms/profiles. This would be more similar to ipfs: https://github.com/ipfs/go-ipfs-config/blob/9a8ef0f5c436319b76187606e82cf9f8bc74df0b/profile.go#L10-L18 So the config would be created from a default profile either on init, or, via the flag you mentioned when the node is started. Instead of currently starting IPFS |
Agree, IPFS config in tendermint config should be removed. Also, I like the idea to use Transformer |
Co-authored-by: Thane Thomson <[email protected]>
* Add changelog entry for #314 Signed-off-by: Thane Thomson <[email protected]> * Build changelog with unreleased changes for pre-release Signed-off-by: Thane Thomson <[email protected]> * version: Set to v0.34.27-alpha.1 Signed-off-by: Thane Thomson <[email protected]> * ci: Update to incorporate/backport changes from #317 Signed-off-by: Thane Thomson <[email protected]> * ci: Simplify release workflow further Signed-off-by: Thane Thomson <[email protected]> * ci: Add step descriptions for pre-release and release workflows to explain what they do Signed-off-by: Thane Thomson <[email protected]> --------- Signed-off-by: Thane Thomson <[email protected]>
See: https://github.com/lazyledger/lazyledger-core/blob/50f722a510dd2ba8e3d31931c9d83132d6318d4b/cmd/tendermint/commands/init.go#L119-L120
This is more relevant for the light client (mvp).
See also: https://github.com/lazyledger/lazyledger-core/blob/9a08608a49c19d587e988eb33dfce11357cea580/docs/lazy-adr/adr-004-mvp-light-client.md#running-an-ipfs-node
The init command should only create a config that can be edited afterwards without fully initializing the repo. Intitialzing the repo should happen on demand when the node is spun up the first time. The same mechanism should be reusable for the light client or for testing purposes.
The text was updated successfully, but these errors were encountered: