fix file indexer
This commit is contained in:
parent
3f1b5f382b
commit
217050bfd2
@ -191,7 +191,10 @@ func (sdi *StateDiffIndexer) PushBlock(block *types.Block, receipts types.Receip
|
|||||||
t = time.Now()
|
t = time.Now()
|
||||||
|
|
||||||
// write uncles
|
// 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)
|
tDiff = time.Since(t)
|
||||||
metrics.IndexerMetrics.UncleProcessingTimer.Update(tDiff)
|
metrics.IndexerMetrics.UncleProcessingTimer.Update(tDiff)
|
||||||
traceMsg += fmt.Sprintf("uncle processing time: %s\r\n", tDiff.String())
|
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{
|
err = sdi.processObjects(processArgs{
|
||||||
headerID: headerID,
|
headerID: headerID,
|
||||||
blockNumber: block.Number(),
|
blockNumber: block.Number(),
|
||||||
|
blockTime: block.Time(),
|
||||||
receipts: receipts,
|
receipts: receipts,
|
||||||
txs: transactions,
|
txs: transactions,
|
||||||
withdrawals: block.Withdrawals(),
|
withdrawals: block.Withdrawals(),
|
||||||
|
Loading…
Reference in New Issue
Block a user