Include transaction_hashes when update_transactions excepts

pull/608/head
Luke Imhoff 6 years ago
parent 39bd00b99b
commit c6458e7272
  1. 9
      apps/explorer/lib/explorer/chain/import.ex

@ -834,9 +834,14 @@ defmodule Explorer.Chain.Import do
transaction_count = Enum.count(ordered_transaction_hashes) transaction_count = Enum.count(ordered_transaction_hashes)
{^transaction_count, result} = Repo.update_all(query, [], timeout: timeout) try do
{^transaction_count, result} = Repo.update_all(query, [], timeout: timeout)
{:ok, result} {:ok, result}
rescue
postgrex_error in Postgrex.Error ->
{:error, %{exception: postgrex_error, transaction_hashes: ordered_transaction_hashes}}
end
end end
defp timestamp_changes_list(changes_list, timestamps) when is_list(changes_list) do defp timestamp_changes_list(changes_list, timestamps) when is_list(changes_list) do

Loading…
Cancel
Save