Improved the way to start consensus engine in chain.
@@ -103,7 +103,10 @@ func (c *singleChain) Start() {
c.bm = block.NewManager(c, c.sm)
c.cs = consensus.NewConsensus(c, c.bm, c.nm)
- go c.cs.Start()
+ err := c.cs.Start()
+ if err != nil {
+ log.Panicf("singleChain.Start: %+v\n", err)
+ }
c.sv = rpc.NewJsonRpcServer(c.bm, c.sm, c.cs, c.nm)
