Browse Source

Set height to 0 in error case for corrupted db

service_pr
mdr0id 5 years ago
parent
commit
42eb73db32
  1. 5
      cmd/ingest/main.go

5
cmd/ingest/main.go

@ -115,9 +115,10 @@ func main() {
if err != nil {
log.WithFields(logrus.Fields{
"error": err,
}).Warn("unable to get current height from local db storage")
}).Warn("unable to get current height from local db storage")
height = 0
}
//ingest from Sapling testnet height
if height < 280000 {

Loading…
Cancel
Save