feat: wire in place testnet command#268
Conversation
tbruyelle
left a comment
There was a problem hiding this comment.
Looks like there is some required setup needed for this command to works properly. For example I had to set a value in app.toml min-gas-prices, and also it requires a genesis.json to exists. Do we need the mainnet genesis here ?
Yes, a valid genesis should be used, this is for cometbft to start properly. Any current valid genesis is fine, as the chainID will be overwritten by the command. |
|
It's not as smooth as I had imagined it, after I copied a genesis to the expected folder, I have an other problem: Suprisingly it expects the |
Welcome in the differences between AppGenesis and CometBFT genesis :D. Let's fix in our fork and just use the decoding fallback. Yes this is why in Ignite we had a wrapper making the UX better. |
The fallback is already there actually, so both genesis should work 🤔 |
Co-authored-by: Thomas <thomas.bruyelle@tendermint.com>
|
Now having a panic in the |
Co-authored-by: Thomas <thomas.bruyelle@tendermint.com>
|
I made progress on using this command properly (initially I didnt understand that I need to use a snapshot of the mainnet before running it). The main issue that I see now is that this command should be backported in v3.3.0, or else the mainnet store can't be read: $ go run ./cmd/atomoned/ in-place-testnet testing-1 atonevaloper1e6ev26rgxzupty5u2g3mmk56dz85g473s7538e --home ~/.atomone/validator1 --accounts-to-fund=atone1e6ev26rgxzupty5u2g3mmk56dz85g473jrlcdp,atone1yzzzcft3qal7m9k6m33fhuslq7z4xvqm06uham
This operation will modify state in your data folder and cannot be undone. Do you want to continue? (y/n)
y
3:24PM ERR failed to load latest version err="failed to load latest version: version of store coredaos mismatch root store's version; expected 8378001 got 0; new stores should be added using StoreUpgrades" module=server
exit status 1EDIT: backporting the change to SDK0.47 is not obvious since the |
|
Also added a setup documentation for using the command, let me know if it's correct 22b490d |
Yes, this looks good to me! |
In theory we don't need to, we can wait until we upgrade to v4 and use it from there. For instance for debugging the testnet if needed. |
OK, I was hoping to use it to test the v4 upgrade, but let's use it later. |
Closes: #251
Fully based on ignite template: https://github.com/ignite/example/blob/master/cmd/exampled/cmd/root.go