|
|
@ -834,9 +834,14 @@ defmodule Explorer.Chain.Import do |
|
|
|
|
|
|
|
|
|
|
|
transaction_count = Enum.count(ordered_transaction_hashes) |
|
|
|
transaction_count = Enum.count(ordered_transaction_hashes) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try do |
|
|
|
{^transaction_count, result} = Repo.update_all(query, [], timeout: timeout) |
|
|
|
{^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 |
|
|
|