Merge pull request #1518 from poanetwork/ab-distinct-failed-transactions

select only distinct failed transactions
pull/1466/head
Victor Baranov 6 years ago committed by GitHub
commit b156add205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/indexer/lib/indexer/temporary/failed_created_addresses.ex

@ -49,7 +49,8 @@ defmodule Indexer.Temporary.FailedCreatedAddresses do
from(t in Transaction, from(t in Transaction,
left_join: it in InternalTransaction, left_join: it in InternalTransaction,
on: it.transaction_hash == t.hash, on: it.transaction_hash == t.hash,
where: t.status == ^0 and not is_nil(it.created_contract_address_hash) where: t.status == ^0 and not is_nil(it.created_contract_address_hash),
distinct: t.hash
) )
found_transactions = Repo.all(query, timeout: @query_timeout) found_transactions = Repo.all(query, timeout: @query_timeout)

Loading…
Cancel
Save