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 }