You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially thought it was #2391 but it's a bit different.
When you initialize a new chain manually with gnoland, without -lazy, -genesis-balances-file and -genesis-txs-file are then totally ignored.
Yet the -help doesn't mention this.
And generateGenesisFile only ever gets called here:
// lazyInitGenesis a new genesis.json file, with a signle validatorfunclazyInitGenesis(...) error {
// Check if the genesis.json is presentifosm.FileExists(genesisPath) {
returnnil
}
// Generate the new genesis.json fileiferr:=generateGenesisFile(genesisPath, publicKey, c); err!=nil { // CALLED HERE
We must better document -genesis-balances-file in the command, and probably fail when this option is called without -lazy.
Same observation for -genesis-txs-file
The text was updated successfully, but these errors were encountered:
grepsuzette
changed the title
Some gnoland start flags require -lazy
Document some gnoland flags require -lazy
Jun 26, 2024
This PR simply documents a constraint, addressing gnolang#2443
When you use `gnoland start` with the following options:
-genesis-txs-file
-genesis-balances-file
Even if your gnoland was never launched (height 0),
they require -lazy to have any kind of effect.
This PR simply documents a constraint, addressing gnolang#2443
When you use `gnoland start` with the following options:
-genesis-txs-file
-genesis-balances-file
Even if your gnoland was never launched (height 0),
they require -lazy to have any kind of effect.
Description
Initially thought it was #2391 but it's a bit different.
When you initialize a new chain manually with gnoland, without -lazy,
-genesis-balances-file
and-genesis-txs-file
are then totally ignored.Yet the
-help
doesn't mention this.Diagnostic
In https://github.com/gnolang/gno/blob/f74e5f0554d1604c94f9dcad5b126c55f1e52ff1/gno.land/cmd/gnoland/start.go
genesisBalancesFile
is only used here:And
generateGenesisFile
only ever gets called here:We must better document -genesis-balances-file in the command, and probably fail when this option is called without -lazy.
Same observation for
-genesis-txs-file
The text was updated successfully, but these errors were encountered: