mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 14:11:21 +00:00
tendermint init makes random chain ID
This commit is contained in:
parent
a204f59ecb
commit
d58b3d54b1
@ -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…
x
Reference in New Issue
Block a user