diff --git a/internal/quaiapi/api.go b/internal/quaiapi/api.go index 94ff9a0a93..90d838b5e4 100644 --- a/internal/quaiapi/api.go +++ b/internal/quaiapi/api.go @@ -1440,10 +1440,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionCount(ctx context.Context, addr // GetTransactionByHash returns the transaction for the given hash func (s *PublicTransactionPoolAPI) GetTransactionByHash(ctx context.Context, hash common.Hash) (*RPCTransaction, error) { // Try to return an already finalized transaction - tx, blockHash, blockNumber, index, err := s.b.GetTransaction(ctx, hash) - if err != nil { - return nil, err - } + tx, blockHash, blockNumber, index, _ := s.b.GetTransaction(ctx, hash) if tx != nil { header, err := s.b.HeaderByHash(ctx, blockHash) if err != nil {