Merge pull request #8649 from blockscout/vb-set-max-polling-time

Set max 30sec JSON RPC poll frequency for realtime fetcher when WS is disabled
pull/8661/head
Victor Baranov 1 year ago committed by GitHub
commit 3326d67e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/indexer/lib/indexer/block/realtime/fetcher.ex

@ -17,6 +17,7 @@
### Fixes
- [#8649](https://github.com/blockscout/blockscout/pull/8649) - Set max 30sec JSON RPC poll frequency for realtime fetcher when WS is disabled
- [#8614](https://github.com/blockscout/blockscout/pull/8614) - Disable market history cataloger fetcher when exchange rates are disabled
- [#8572](https://github.com/blockscout/blockscout/pull/8572) - Refactor docker-compose config
- [#8552](https://github.com/blockscout/blockscout/pull/8552) - Add CHAIN_TYPE build arg to Dockerfile

@ -180,7 +180,7 @@ defmodule Indexer.Block.Realtime.Fetcher do
polling_period =
case AverageBlockTime.average_block_time() do
{:error, :disabled} -> 2_000
block_time -> round(Duration.to_milliseconds(block_time) / 2)
block_time -> min(round(Duration.to_milliseconds(block_time) / 2), 30_000)
end
safe_polling_period = max(polling_period, @minimum_safe_polling_period)

Loading…
Cancel
Save