Set height to 0 in error case for corrupted db

This commit is contained in:
mdr0id 2019-09-05 17:27:30 -07:00
parent 148a1da8c7
commit 42eb73db32
1 changed files with 3 additions and 2 deletions

View File

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