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
+4 -3
View File
@@ -17,8 +17,8 @@
package history
import (
"fmt"
"github.com/vulcanize/vulcanizedb/pkg/core"
"io"
"text/template"
)
@@ -52,6 +52,7 @@ func MakeRange(min, max int64) []int64 {
return a
}
func (window ValidationWindow) Log(out io.Writer) {
ParsedWindowTemplate.Execute(out, window)
func (window ValidationWindow) GetString() string {
return fmt.Sprintf("Validating Blocks |%v|-- Validation Window --|%v}|",
window.LowerBound, window.UpperBound)
}