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

not need config

parent c714bb15
package main package main
import ( import (
"flag"
"fmt" "fmt"
"os" "os"
"sort" "sort"
...@@ -12,17 +11,7 @@ import ( ...@@ -12,17 +11,7 @@ import (
_ "github.com/33cn/plugin/plugin" _ "github.com/33cn/plugin/plugin"
) )
var (
configPath = flag.String("f", "", "configfile")
)
func main() { func main() {
flag.Parse()
if *configPath == "" {
*configPath = "chain33.toml"
}
cfg, _ := types.InitCfg(*configPath)
types.Init(cfg.Title, cfg)
forks, err := types.CloneFork("chain33") forks, err := types.CloneFork("chain33")
if err != nil { if err != nil {
fmt.Printf("clone fork failed: %v", err) 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