Fix unnecessary tx error status

pull/3432/head
Victor Baranov 4 years ago
parent c026f7472c
commit 272a8d3d50
  1. 2
      CHANGELOG.md
  2. 4
      apps/indexer/lib/indexer/fetcher/internal_transaction.ex

@ -19,7 +19,7 @@
- [#3424](https://github.com/poanetwork/blockscout/pull/3424) - Fix display of long NFT IDs
- [#3422](https://github.com/poanetwork/blockscout/pull/3422) - Fix contract reader: tuple type
- [#3408](https://github.com/poanetwork/blockscout/pull/3408) - Fix (total) difficulty display
- [#3401](https://github.com/poanetwork/blockscout/pull/3401) - Fix procedure of marking internal transactions as failed
- [#3401](https://github.com/poanetwork/blockscout/pull/3401), [#3432](https://github.com/poanetwork/blockscout/pull/3432) - Fix procedure of marking internal transactions as failed
- [#3400](https://github.com/poanetwork/blockscout/pull/3400) - Add :last_block_number realtime chain event
- [#3399](https://github.com/poanetwork/blockscout/pull/3399) - Fix Token transfers CSV export
- [#3396](https://github.com/poanetwork/blockscout/pull/3396) - Handle exchange rates request throttled

@ -241,11 +241,13 @@ defmodule Indexer.Fetcher.InternalTransaction do
internal_transactions_params
|> Enum.map(fn internal_transaction_param ->
transaction_index = internal_transaction_param[:transaction_index]
block_number = internal_transaction_param[:block_number]
failed_parent =
internal_transactions_params
|> Enum.filter(fn internal_transactions_param ->
internal_transactions_param[:transaction_index] == transaction_index &&
internal_transactions_param[:block_number] == block_number &&
internal_transactions_param[:transaction_index] == transaction_index &&
internal_transactions_param[:trace_address] == [] && !is_nil(internal_transactions_param[:error])
end)
|> Enum.at(0)

Loading…
Cancel
Save