Commit b15e9c10 authored by szh's avatar szh

up

parent 16e8a7fb
...@@ -9,7 +9,6 @@ import ( ...@@ -9,7 +9,6 @@ import (
"chain33-pai/pkg/util" "chain33-pai/pkg/util"
"chain33-pai/miner" "chain33-pai/miner"
"chain33-pai/pkg/chain33" "chain33-pai/pkg/chain33"
"net/http"
) )
func init() { func init() {
...@@ -30,9 +29,9 @@ func init() { ...@@ -30,9 +29,9 @@ func init() {
// @license.url https://chain33-pai/blob/master/LICENSE // @license.url https://chain33-pai/blob/master/LICENSE
func main() { func main() {
gin.SetMode(setting.ServerSetting.RunMode) gin.SetMode(setting.ServerSetting.RunMode)
go func() { //go func() {
http.ListenAndServe("0.0.0.0:6061", nil) // http.ListenAndServe("0.0.0.0:6061", nil)
}() //}()
go miner.SyncBlock() go miner.SyncBlock()
select{} select{}
} }
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