Set height to 0 in error case for corrupted db
This commit is contained in:
parent
148a1da8c7
commit
42eb73db32
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue