chore: Support non-unique log index for rsk chain type (#10807)

pull/10814/head
Qwerty5Uiop 2 months ago committed by GitHub
parent bb1c194d62
commit b80a27ca28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      apps/explorer/lib/explorer/chain/import/runner/blocks.ex

@ -738,7 +738,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
end
defp refs_to_token_transfers_query(historical_token_transfers_query, filtered_query) do
if Application.get_env(:explorer, :chain_type) == :polygon_zkevm do
if Application.get_env(:explorer, :chain_type) in [:polygon_zkevm, :rsk] do
from(historical_tt in subquery(historical_token_transfers_query),
inner_join: tt in subquery(filtered_query),
on:
@ -779,7 +779,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
end
defp derived_token_transfers_query(refs_to_token_transfers, filtered_query) do
if Application.get_env(:explorer, :chain_type) == :polygon_zkevm do
if Application.get_env(:explorer, :chain_type) in [:polygon_zkevm, :rsk] do
from(tt in filtered_query,
inner_join: tt_1 in subquery(refs_to_token_transfers),
on:

Loading…
Cancel
Save