From 46156d296f02796ace474f25a65ad15aac29d219 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Sat, 7 Dec 2024 14:07:39 +0100 Subject: [PATCH] Fix refetch internal data --- api/ethereumtype.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ethereumtype.go b/api/ethereumtype.go index b4aa9446..1f98f2ee 100644 --- a/api/ethereumtype.go +++ b/api/ethereumtype.go @@ -62,7 +62,7 @@ func (w *Worker) RefetchInternalDataRoutine() { if block != nil { blockSpecificData, _ = block.CoinSpecificData.(*bchain.EthereumBlockSpecificData) } - if err != nil || block == nil || blockSpecificData == nil || blockSpecificData.InternalDataError != "" { + if err != nil || block == nil || (blockSpecificData != nil && blockSpecificData.InternalDataError != "") { glog.Errorf("Refetching internal data for %d %s, error %v, retrying", ie.Height, ie.Hash, err) // try for second time to fetch the data - the 2nd attempt after the first unsuccessful has many times higher probability of success // probably something to do with data preloaded to cache on the backend