diff --git a/cmd/plugchaind/cmd/root.go b/cmd/plugchaind/cmd/root.go index 19c64b93e..66d35a64e 100644 --- a/cmd/plugchaind/cmd/root.go +++ b/cmd/plugchaind/cmd/root.go @@ -65,7 +65,10 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) { } initRootCmd(rootCmd, encodingConfig) - + overwriteFlagDefaults(rootCmd, map[string]string{ + flags.FlagChainID: ChainID, + flags.FlagKeyringBackend: "file", + }) return rootCmd, encodingConfig } diff --git a/docs/tutorial/cn/README.md b/docs/tutorial/cn/README.md index 3e2a09f1d..856a3d944 100644 --- a/docs/tutorial/cn/README.md +++ b/docs/tutorial/cn/README.md @@ -31,6 +31,8 @@ go version ``` git clone https://github.com/oracleNetworkProtocol/plugchain.git ``` +> 如果克隆仓库比较慢或者没反应的情况,可以把克隆地址 `github.com` 换成国内镜像,已知的国内镜像有`github.com.cnpmjs.org`和`git.sdut.me/` + 2. 开启gomodule和设置终端GOPROXY ``` go env -w GO111MODULE=on