Merge pull request #9253 from blockscout/ap-dont-fetch-first-trace-for-pending-trans

Don't fetch first trace for pending transactions
pull/9234/head
Victor Baranov 10 months ago committed by GitHub
commit c61211722e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 3
      apps/indexer/lib/indexer/fetcher/first_trace_on_demand.ex

@ -18,6 +18,7 @@
### Fixes
- [#9261](https://github.com/blockscout/blockscout/pull/9261) - Fix pending transactions sanitizer
- [#9253](https://github.com/blockscout/blockscout/pull/9253) - Don't fetch first trace for pending transactions
- [#9241](https://github.com/blockscout/blockscout/pull/9241) - Fix log decoding bug
- [#9229](https://github.com/blockscout/blockscout/pull/9229) - Add missing filter to txlist query
- [#9187](https://github.com/blockscout/blockscout/pull/9187) - Fix Internal Server Error on request for nonexistent token instance

@ -60,6 +60,9 @@ defmodule Indexer.Fetcher.FirstTraceOnDemand do
end
@impl true
# Don't fetch first trace for pending transactions
def handle_cast({:fetch, %{block_hash: nil}}, state), do: {:noreply, state}
def handle_cast({:fetch, transaction}, state) do
fetch_first_trace(transaction, state)

Loading…
Cancel
Save