diff --git a/cmd/sync.go b/cmd/sync.go index 9814a41c..6be8d843 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -49,9 +49,7 @@ func init() { } func backFillAllBlocks(blockchain core.Blockchain, blockRepository datastore.BlockRepository, missingBlocksPopulated chan int, startingBlockNumber int64) { - go func() { - missingBlocksPopulated <- history.PopulateMissingBlocks(blockchain, blockRepository, startingBlockNumber) - }() + missingBlocksPopulated <- history.PopulateMissingBlocks(blockchain, blockRepository, startingBlockNumber) } func sync() {