Browse Source

tendermint init makes random chain ID

pull/176/head
Jae Kwon 9 years ago
parent
commit
d58b3d54b1
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      cmd/tendermint/init.go

+ 3
- 3
cmd/tendermint/init.go View File

@ -1,6 +1,7 @@
package main
import (
. "github.com/tendermint/go-common"
"github.com/tendermint/tendermint/types"
)
@ -9,13 +10,12 @@ func init_files() {
privValidator.SetFile(config.GetString("priv_validator_file"))
privValidator.Save()
//TODO: chainID
genDoc := types.GenesisDoc{
ChainID: "hi",
ChainID: Fmt("test-chain-%v", RandStr(6)),
}
genDoc.Validators = []types.GenesisValidator{types.GenesisValidator{
PubKey: privValidator.PubKey,
Amount: 10000,
Amount: 10,
}}
genDoc.SaveAs(config.GetString("genesis_file"))


Loading…
Cancel
Save