Merge pull request #5768 from blockscout/hotfix/outstandingRowsLimit

Outstanding rows limit for missing blocks query (catchup fetcher)
pull/5345/head
Victor Baranov 2 years ago committed by GitHub
commit 489913bdaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 8
      apps/explorer/lib/explorer/chain.ex

@ -6,6 +6,7 @@
- [#5699](https://github.com/blockscout/blockscout/pull/5699) - Switch to basic (non-pro) API endpoint for Coingecko requests, if API key is not provided
### Fixes
- [#5768](https://github.com/blockscout/blockscout/pull/5768) - Outstanding rows limit for missing blocks query (catchup fetcher)
- [#5737](https://github.com/blockscout/blockscout/pull/5737) - Fix double requests; Fix token balances dropdown view
- [#5723](https://github.com/blockscout/blockscout/pull/5723) - Add nil clause for Data.to_string/1
- [#5714](https://github.com/blockscout/blockscout/pull/5714) - Add clause for EthereumJSONRPC.Transaction.elixir_to_params/1 when gas_price is missing in the response

@ -2987,10 +2987,14 @@ defmodule Explorer.Chain do
right_join:
missing_range in fragment(
"""
(SELECT distinct b1.number
(
SELECT distinct b1.number
FROM generate_series((?)::integer, (?)::integer) AS b1(number)
WHERE NOT EXISTS
(SELECT 1 FROM blocks b2 WHERE b2.number=b1.number AND b2.consensus))
(SELECT 1 FROM blocks b2 WHERE b2.number=b1.number AND b2.consensus)
ORDER BY b1.number DESC
LIMIT 500000
)
""",
^range_min,
^range_max

Loading…
Cancel
Save