if _, err := n.Start(); err != nil {
return fmt.Errorf("Failed to start node: %v", err)
} else {
- log.WithField("nodeInfo", n.SyncManager().Switch().NodeInfo()).Info("Started node")
+ log.Info("Started node")
}
// Trap signal, run forever.
cmn "github.com/tendermint/tmlibs/common"
dbm "github.com/tendermint/tmlibs/db"
+ "net"
+ "time"
+
cfg "github.com/bytom/config"
"github.com/bytom/p2p"
core "github.com/bytom/protocol"
"github.com/bytom/protocol/bc"
"github.com/bytom/version"
- "net"
- "time"
)
//SyncManager Sync Manager is responsible for the business layer information synchronization
conn, err := net.DialTimeout("tcp", sm.NodeInfo().ListenAddr, 3*time.Second)
if err != nil && conn == nil {
- log.Info("Could not open listen port")
+ log.Error("Could not open listen port")
}
if err == nil && conn != nil {
return err
}
}
-
+ log.WithField("nodeInfo", sm.sw.NodeInfo()).Info("net start")
return nil
}