This commit is contained in:
Dale Rahn 2013-09-10 11:25:13 -04:00
parent 85553133ce
commit adc73cbc9d
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ func (db *LevelDb) getBlkLoc(sha *btcwire.ShaHash) (int64, error) {
dr := bytes.NewBuffer(data) dr := bytes.NewBuffer(data)
err = binary.Read(dr, binary.LittleEndian, &blkHeight) err = binary.Read(dr, binary.LittleEndian, &blkHeight)
if err != nil { if err != nil {
fmt.Printf("get getBlkLoc len %v\n", len(data)) log.Tracef("get getBlkLoc len %v\n", len(data))
err = fmt.Errorf("Db Corrupt 0") err = fmt.Errorf("Db Corrupt 0")
return 0, err return 0, err
} }

View file

@ -489,7 +489,7 @@ func (db *LevelDb) processBatches() error {
err = db.lDb.Write(db.lbatch, db.wo) err = db.lDb.Write(db.lbatch, db.wo)
if err != nil { if err != nil {
fmt.Printf("batch failed %v\n", err) log.Tracef("batch failed %v\n", err)
return err return err
} }
db.lbatch.Reset() db.lbatch.Reset()