From 42eb73db32e9cb1ba572697aae80a0250371ad96 Mon Sep 17 00:00:00 2001 From: mdr0id Date: Thu, 5 Sep 2019 17:27:30 -0700 Subject: [PATCH] Set height to 0 in error case for corrupted db --- cmd/ingest/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/ingest/main.go b/cmd/ingest/main.go index 5fd6623..97aa7cb 100644 --- a/cmd/ingest/main.go +++ b/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 {