• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisionc25231d6b25ffa1e03a1143d89357b52851b5c08 (tree)
Time2019-07-12 16:40:47
Authoroysheng <33340252+oysheng@user...>
CommiterPaladz

Log Message

modify params (#269)

* modify params

* optimise

Change Summary

Incremental Difference

--- a/cmd/vapord/commands/init.go
+++ b/cmd/vapord/commands/init.go
@@ -32,7 +32,9 @@ func initFiles(cmd *cobra.Command, args []string) {
3232 }
3333
3434 switch config.ChainID {
35- case "vapor":
35+ case "mainnet":
36+ cfg.EnsureRoot(config.RootDir, config.ChainID)
37+ case "testnet":
3638 cfg.EnsureRoot(config.RootDir, config.ChainID)
3739 default:
3840 cfg.EnsureRoot(config.RootDir, "solonet")
--- a/config/genesis.go
+++ b/config/genesis.go
@@ -150,9 +150,8 @@ func soloNetGenesisBlock() *types.Block {
150150 // GenesisBlock will return genesis block
151151 func GenesisBlock() *types.Block {
152152 return map[string]func() *types.Block{
153- "main": mainNetGenesisBlock,
154- "test": testNetGenesisBlock,
155- "solo": soloNetGenesisBlock,
156- "vapor": soloNetGenesisBlock,
153+ "main": mainNetGenesisBlock,
154+ "test": testNetGenesisBlock,
155+ "solo": soloNetGenesisBlock,
157156 }[consensus.ActiveNetParams.Name]()
158157 }
--- a/docker/vapord/config.toml
+++ b/docker/vapord/config.toml
@@ -4,7 +4,7 @@ fast_sync = true
44 db_backend = "leveldb"
55 api_addr = "0.0.0.0:9889"
66 moniker = ""
7-chain_id = "vapor"
7+chain_id = "mainnet"
88 [p2p]
99 laddr = "tcp://0.0.0.0:56659"
1010 seeds = "52.83.133.152:56659"
Show on old repository browser