feat: ignite chain genesis config option - #2950
Conversation
Co-authored-by: Jerónimo Albi <jeronimo.albi@tendermint.com>
|
@aljo242 Got recently the info that it is still WIP, is it now ready for review? |
|
Still WIP - the custom genesis being built, but not populated on ignite network |
What do you mean by not populated on Ignite Network? |
There was a problem hiding this comment.
I have some issue when using a genesis that contains accounts:
$ignite n chain publish https://github.com/tendermint/spn --genesis-config config.yml
⋆ Launch ID: 242
$ignite n chain show genesis 242
Source code fetched
Blockchain set up
Blockchain initialized
account already exists
It seems like accounts are initialized twice?
|
There is this issue when using a I think we should still be able to use the config file for initial genesis since we can also specify just initial genesis accounts in it |
Yeah, this is happening during |
It makes sense in general as there shouldn't be account with public mnemonic for a published network. |
|
Working now with: ignite network chain publish github.com/aljo242/test --genesis-config config.yml
ignite n chain init 252The config needs to have a valid SDK address and NOT include a mnemonic. |
|
I added a config in It seems there is still an issue with the dialing peers that I raised above this is for the chain launch ID 253 that I published with For the chain 254 that I published without config, the network starts and produce blocks There might still be some minimal side effects in the node config? |
|
I reverted all of the changes made to the node config. Will keep investigating. |
|
Any news on this @aljo242 ? |
| return err | ||
| } | ||
|
|
||
| // reapply since overwritten with genesis config |
There was a problem hiding this comment.
Can we add more details in the comments for this operation?
Why is it needed?
There was a problem hiding this comment.
Sure. This is needed because earlier, I am invoking c.chain.InitChain() which will populate the .toml files incorrectly. We decided to not add logic that would modify those functions internally, so I just need to call the same logic again, but with a different config than what we are getting from the network.
The issues we're having with this PR think that some of this related code needs refactored before this can be done cleanly
Closes #2852
Example: