Skip to content

Commit

Permalink
chg: add check
Browse files Browse the repository at this point in the history
  • Loading branch information
bladehan1 committed Apr 2, 2024
1 parent eeb1dc6 commit b23e0a6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1452,10 +1452,12 @@ func newRPCTransactionFromBlockIndex(b *types.Block, index uint64, db ethdb.Data
if index == uint64(len(txs)) {
borReceipt = rawdb.ReadBorReceipt(db, b.Hash(), b.NumberU64())
if borReceipt != nil {
tx, _, _, _ := rawdb.ReadBorTransaction(db, borReceipt.TxHash)
if borReceipt.TxHash != (common.Hash{}) {
tx, _, _, _ := rawdb.ReadBorTransaction(db, borReceipt.TxHash)

if tx != nil {
txs = append(txs, tx)
if tx != nil {
txs = append(txs, tx)
}
}
}
}
Expand Down

0 comments on commit b23e0a6

Please sign in to comment.