Merge pull request #7 from vulcanize/VDB-347-Squelch-lightSync

VDB-347 Squelch lightSync in stdout
This commit is contained in:
Edvard Hübinette
2019-02-01 11:02:48 +01:00
committed by GitHub
4 changed files with 6 additions and 20 deletions
+1 -2
View File
@@ -17,7 +17,6 @@
package cmd
import (
"os"
"time"
log "github.com/sirupsen/logrus"
@@ -87,7 +86,7 @@ func lightSync() {
if err != nil {
log.Error("ValidateHeaders failed in lightSync: ", err)
}
window.Log(os.Stdout)
log.Info(window.GetString())
case n := <-missingBlocksPopulated:
if n == 0 {
time.Sleep(3 * time.Second)
+1 -2
View File
@@ -17,7 +17,6 @@
package cmd
import (
"os"
"time"
log "github.com/sirupsen/logrus"
@@ -87,7 +86,7 @@ func sync() {
select {
case <-ticker.C:
window := validator.ValidateBlocks()
window.Log(os.Stdout)
log.Info(window.GetString())
case <-missingBlocksPopulated:
go backFillAllBlocks(blockChain, blockRepository, missingBlocksPopulated, startingBlockNumber)
}