Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
add indexer check when debug block
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Feb 28, 2023
1 parent fcdc625 commit a5cb4b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpc/backend/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ func (b *Backend) TraceBlock(height rpctypes.BlockNumber,
// Just considers Ethereum transactions
continue
}
if _, err := b.GetTxByEthHash(common.HexToHash(ethMessage.Hash)); err != nil {
b.logger.Error(err.Error())
continue
}
txsMessages = append(txsMessages, ethMessage)
}
}
Expand Down

0 comments on commit a5cb4b9

Please sign in to comment.