@@ -178,7 +178,6 @@ func (db *Database) SetLatestVersion(version int64) error {
178178 var ts [VersionSize ]byte
179179 binary .LittleEndian .PutUint64 (ts [:], uint64 (version ))
180180 err := db .storage .Set ([]byte (latestVersionKey ), ts [:], defaultWriteOpts )
181- fmt .Printf ("SetLatestVersion: version=%d, err=%v, latestVersionKey=%s\n " , version , err , latestVersionKey )
182181 return err
183182}
184183
@@ -441,8 +440,6 @@ func (db *Database) computeMissingRanges(latestVersion int64) error {
441440}
442441
443442func (db * Database ) computeHashForRange (beginBlock , endBlock int64 ) error {
444- fmt .Printf ("Computing hash for chunk [%d, %d]\n " , beginBlock , endBlock )
445-
446443 chunkSize := endBlock - beginBlock + 1
447444 if chunkSize <= 0 {
448445 // Nothing to do
@@ -485,8 +482,6 @@ func (db *Database) computeHashForRange(beginBlock, endBlock int64) error {
485482
486483 allHashes := hashCalculator .ComputeHashes ()
487484 if len (allHashes ) == 0 {
488- fmt .Printf ("No data found for module %q in [%d..%d], skipping.\n " ,
489- moduleName , beginBlock , endBlock )
490485 continue
491486 }
492487
@@ -499,8 +494,6 @@ func (db *Database) computeHashForRange(beginBlock, endBlock int64) error {
499494 )
500495 }
501496
502- fmt .Printf ("Wrote block-range hash for module=%q range=[%d..%d]: %X\n " ,
503- moduleName , beginBlock , endBlock , finalHash )
504497 }
505498
506499 return nil
0 commit comments