diff --git a/indexer/database/file/indexer.go b/indexer/database/file/indexer.go index dece828..3ad29b1 100644 --- a/indexer/database/file/indexer.go +++ b/indexer/database/file/indexer.go @@ -191,7 +191,10 @@ func (sdi *StateDiffIndexer) PushBlock(block *types.Block, receipts types.Receip t = time.Now() // write uncles - sdi.processUncles(headerID, block.Number(), block.UncleHash(), block.Uncles()) + err = sdi.processUncles(headerID, block.Number(), block.UncleHash(), block.Uncles()) + if err != nil { + return nil, err + } tDiff = time.Since(t) metrics.IndexerMetrics.UncleProcessingTimer.Update(tDiff) traceMsg += fmt.Sprintf("uncle processing time: %s\r\n", tDiff.String()) @@ -200,6 +203,7 @@ func (sdi *StateDiffIndexer) PushBlock(block *types.Block, receipts types.Receip err = sdi.processObjects(processArgs{ headerID: headerID, blockNumber: block.Number(), + blockTime: block.Time(), receipts: receipts, txs: transactions, withdrawals: block.Withdrawals(),