From bf86767e60e2ae8c89baf4b616c62ff4e74cf15e Mon Sep 17 00:00:00 2001 From: Jacky Wang Date: Thu, 20 Aug 2020 22:19:38 -0700 Subject: [PATCH] [sync] fix testnet syncing panic issue (#3308) * [sync] fix testnet syncing panic issue * [sync] add back close connections in initialization --- api/service/syncing/syncing.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/service/syncing/syncing.go b/api/service/syncing/syncing.go index cd7ef520b..4e0ee0b84 100644 --- a/api/service/syncing/syncing.go +++ b/api/service/syncing/syncing.go @@ -102,6 +102,7 @@ func CreateStateSync(ip string, port string, peerHash [20]byte) *StateSync { stateSync.selfPeerHash = peerHash stateSync.commonBlocks = make(map[int]*types.Block) stateSync.lastMileBlocks = []*types.Block{} + stateSync.syncConfig = &SyncConfig{} return stateSync }