Just set nil to NetworkManager for working around build error.
To run testchain properly, create a proper NetworkManager and set it.
@@ -273,7 +273,8 @@ func (c *importOnlyConsensus) GetStatus() *module.ConsensusStatus {
func (c *chain) startAsProposer(ch chan<- []byte) {
c.wallet = common.NewWallet()
c.database = db.NewMapDB()
- c.sm = service.NewManager(c)
+ // TODO to run, create NetworkManager and set it for ServiceManager
+ c.sm = service.NewManager(c, nil)
c.bm = block.NewManager(c, c.sm)
c.cs = &proposeOnlyConsensus{
sm: c.sm,
@@ -286,7 +287,7 @@ func (c *chain) startAsProposer(ch chan<- []byte) {
func (c *chain) startAsImporter(ch <-chan []byte) {
c.wallet = common.NewWallet()
c.database = db.NewMapDB()
- c.sm = service.NewManager(c)
+ c.sm = service.NewManager(c, nil)
c.bm = block.NewManager(c, c.sm)
c.cs = &importOnlyConsensus{
sm: c.sm,
