Commit 998bbce0 authored by linj's avatar linj Committed by vipwzw

not need config

parent c714bb15
package main
import (
"flag"
"fmt"
"os"
"sort"
......@@ -12,17 +11,7 @@ import (
_ "github.com/33cn/plugin/plugin"
)
var (
configPath = flag.String("f", "", "configfile")
)
func main() {
flag.Parse()
if *configPath == "" {
*configPath = "chain33.toml"
}
cfg, _ := types.InitCfg(*configPath)
types.Init(cfg.Title, cfg)
forks, err := types.CloneFork("chain33")
if err != nil {
fmt.Printf("clone fork failed: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment