Set height to 0 in error case for corrupted db
This commit is contained in:
parent
148a1da8c7
commit
42eb73db32
|
@ -115,9 +115,10 @@ func main() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.WithFields(logrus.Fields{
|
log.WithFields(logrus.Fields{
|
||||||
"error": err,
|
"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
|
//ingest from Sapling testnet height
|
||||||
if height < 280000 {
|
if height < 280000 {
|
||||||
|
|
Loading…
Reference in New Issue