Skip to content

Commit

Permalink
Fix retrieving Bor transactions from the pool (#6689)
Browse files Browse the repository at this point in the history
At the moment erigon does not try to look for bor transactions inside
the pool
  • Loading branch information
farwayer authored Jan 28, 2023
1 parent dc2c2b8 commit 00390a9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/rpcdaemon/commands/eth_txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ func (api *APIImpl) GetTransactionByHash(ctx context.Context, txnHash common.Has
if err != nil {
return nil, err
}
if blockNumPtr == nil {
return nil, nil

ok = blockNumPtr != nil
if ok {
blockNum = *blockNumPtr
}
blockNum = *blockNumPtr
}
if ok || (chainConfig.Bor != nil && blockNum != 0) {
if ok {
block, err := api.blockByNumberWithSenders(tx, blockNum)
if err != nil {
return nil, err
Expand Down

0 comments on commit 00390a9

Please sign in to comment.