|
|
|
@ -192,11 +192,12 @@ defmodule Indexer.Block.Fetcher do |
|
|
|
|
withdrawals: %{params: withdrawals_params} |
|
|
|
|
} |
|
|
|
|
), |
|
|
|
|
{:ok, inserted_tx_actions} <- |
|
|
|
|
Chain.import(%{ |
|
|
|
|
transaction_actions: %{params: transaction_actions}, |
|
|
|
|
timeout: :infinity |
|
|
|
|
}) do |
|
|
|
|
{:tx_actions, {:ok, inserted_tx_actions}} <- |
|
|
|
|
{:tx_actions, |
|
|
|
|
Chain.import(%{ |
|
|
|
|
transaction_actions: %{params: transaction_actions}, |
|
|
|
|
timeout: :infinity |
|
|
|
|
})} do |
|
|
|
|
inserted = Map.merge(inserted, inserted_tx_actions) |
|
|
|
|
Prometheus.Instrumenter.block_batch_fetch(fetch_time, callback_module) |
|
|
|
|
result = {:ok, %{inserted: inserted, errors: blocks_errors}} |
|
|
|
|