forked from okx/exchain
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR: change okexchain to exchain (okx#832)
* clean okexchain * clean okexchain * clean okexchain * clean okexchain Co-authored-by: Zhong Qiu <[email protected]>
- Loading branch information
1 parent
d96da09
commit 7f2aed3
Showing
38 changed files
with
138 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
OKExChain | ||
ExChain | ||
License: Apache2.0 | ||
|
||
Apache License | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ necessary files (private validator, genesis, config, etc.). | |
Note, strict routability for addresses is turned off in the config file.`, | ||
|
||
Example: "okexchaind testnet --v 4 --keyring-backend test --output-dir ./output --starting-ip-address 192.168.10.2", | ||
Example: "exchaind testnet --v 4 --keyring-backend test --output-dir ./output --starting-ip-address 192.168.10.2", | ||
RunE: func(cmd *cobra.Command, _ []string) error { | ||
config := ctx.Config | ||
|
||
|
@@ -96,8 +96,8 @@ Note, strict routability for addresses is turned off in the config file.`, | |
cmd.Flags().Int(flagNumValidators, 4, "Number of validators to initialize the testnet with") | ||
cmd.Flags().StringP(flagOutputDir, "o", "./build", "Directory to store initialization data for the testnet") | ||
cmd.Flags().String(flagNodeDirPrefix, "node", "Prefix the directory name for each node with (node results in node0, node1, ...)") | ||
cmd.Flags().String(flagNodeDaemonHome, "okexchaind", "Home directory of the node's daemon configuration") | ||
cmd.Flags().String(flagNodeCLIHome, "okexchaincli", "Home directory of the node's cli configuration") | ||
cmd.Flags().String(flagNodeDaemonHome, "exchaind", "Home directory of the node's daemon configuration") | ||
cmd.Flags().String(flagNodeCLIHome, "exchaincli", "Home directory of the node's cli configuration") | ||
cmd.Flags().String(flagStartingIPAddress, "192.168.0.1", "Starting IP address (192.168.0.1 results in persistent peers list [email protected]:46656, [email protected]:46656, ...)") | ||
cmd.Flags().StringSlice(flagIPAddrs, []string{}, "List of IP addresses to use (i.e. `192.168.0.1,172.168.0.1` results in persistent peers list [email protected]:46656, [email protected])") | ||
cmd.Flags().String(flags.FlagChainID, "", "genesis file chain-id, if left blank will be randomly created") | ||
|
@@ -133,7 +133,7 @@ func InitTestnet( | |
) error { | ||
|
||
if chainID == "" { | ||
chainID = fmt.Sprintf("okexchain-%d", tmrand.Int63n(9999999999999)+1) | ||
chainID = fmt.Sprintf("exchain-%d", tmrand.Int63n(9999999999999)+1) | ||
} | ||
|
||
if !ethermint.IsValidChainID(chainID) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.