From 12f31bcbefb468eb3638570ffe10ef1845d252b1 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Wed, 5 Sep 2018 13:23:40 -0700 Subject: [PATCH] init blockSyncing and doneSyncing channel --- node/node.go | 3 +++ 1 file changed, 3 insertions(+) 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()