Skip to content

feat: wire in place testnet command#268

Open
julienrbrt wants to merge 8 commits intomainfrom
julien/wireinplace-testnet
Open

feat: wire in place testnet command#268
julienrbrt wants to merge 8 commits intomainfrom
julien/wireinplace-testnet

Conversation

@julienrbrt
Copy link
Collaborator

Copy link
Collaborator

@tbruyelle tbruyelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ?

@julienrbrt
Copy link
Collaborator Author

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.

@tbruyelle
Copy link
Collaborator

It's not as smooth as I had imagined it, after I copied a genesis to the expected folder, I have an other problem:

error reading GenesisDoc at /home/tom/.atomone/validator1/config/genesis.json: invalid 64-bit integer encoding "1", expected string

Suprisingly it expects the initial_heigth to be a string rather than a number... I'm confused... Changing it to string doesnt solve the problem since somehow the process switch back the field to an int ...

@julienrbrt
Copy link
Collaborator Author

It's not as smooth as I had imagined it, after I copied a genesis to the expected folder, I have an other problem:

error reading GenesisDoc at /home/tom/.atomone/validator1/config/genesis.json: invalid 64-bit integer encoding "1", expected string

Suprisingly it expects the initial_heigth to be a string rather than a number... I'm confused... Changing it to string doesnt solve the problem since somehow the process switch back the field to an int ...

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.

@julienrbrt
Copy link
Collaborator Author

Welcome in the differences between AppGenesis and CometBFT genesis :D. Let's fix in our fork and just use the decoding fallback.

The fallback is already there actually, so both genesis should work 🤔

julienrbrt and others added 2 commits January 29, 2026 17:39
Co-authored-by: Thomas <thomas.bruyelle@tendermint.com>
@tbruyelle
Copy link
Collaborator

Now having a panic in the testnetify function because block is nil

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x1acfae8]

goroutine 1 [running]:
github.com/cosmos/cosmos-sdk/server.testnetify(0xc0031fa0a0, 0x51b8358, {0x56672a0, 0xc001594d40}, {0x0, 0x0})
	/home/tom/gohack/github.com/cosmos/cosmos-sdk/server/start.go:863 +0x17a8
github.com/cosmos/cosmos-sdk/server.startApp(0xc0031fa0a0, 0x51b8358, {0x51b8b40, 0x0, 0x0, 0x0, 0x51b8b50})
	/home/tom/gohack/github.com/cosmos/cosmos-sdk/server/start.go:616 +0x14e
github.com/cosmos/cosmos-sdk/server.start(_, {{0x0, 0x0, 0x0}, {0x566da38, 0xc0013a98f0}, 0x0, {0x0, 0x0}, {0x5683b08, ...}, ...}, ...)
	/home/tom/gohack/github.com/cosmos/cosmos-sdk/server/start.go:227 +0x159

julienrbrt and others added 2 commits February 13, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wire in place testnet command

2 participants