diff --git a/node/node.go b/node/node.go index b28f46ac4..ee93c64a7 100644 --- a/node/node.go +++ b/node/node.go @@ -134,6 +134,9 @@ func New(consensus *consensus.Consensus, db *db.LDBDatabase) *Node { // Initialize level db. node.db = db + // Initialize channel for syncing. + node.doneSyncing = make(chan struct{}) + node.blockSyncing = make(chan struct{}) } // Logger node.log = log.New()