Merge pull request #5458 from blockscout/vb-decrease-min-safe-polling-period-rt-fetcher

Decrease min safe polling period for realtime fetcher
pull/5473/head
Victor Baranov 3 years ago committed by GitHub
commit b6c36725e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/lib/explorer/counters/average_block_time.ex
  3. 2
      apps/indexer/lib/indexer/block/realtime/fetcher.ex

@ -29,6 +29,7 @@
- [#5239](https://github.com/blockscout/blockscout/pull/5239) - Add accounting for block rewards in `getblockreward` api method - [#5239](https://github.com/blockscout/blockscout/pull/5239) - Add accounting for block rewards in `getblockreward` api method
### Chore ### Chore
- [#5458](https://github.com/blockscout/blockscout/pull/5458) - Decrease min safe polling period for realtime fetcher
- [#5456](https://github.com/blockscout/blockscout/pull/5456) - Ignore arbitrary block details fields for custom Ethereum clients - [#5456](https://github.com/blockscout/blockscout/pull/5456) - Ignore arbitrary block details fields for custom Ethereum clients
- [#5450](https://github.com/blockscout/blockscout/pull/5450) - Logging error in publishing of smart-contract - [#5450](https://github.com/blockscout/blockscout/pull/5450) - Logging error in publishing of smart-contract
- [#5433](https://github.com/blockscout/blockscout/pull/5433) - Caching modules refactoring - [#5433](https://github.com/blockscout/blockscout/pull/5433) - Caching modules refactoring

@ -130,7 +130,7 @@ defmodule Explorer.Counters.AverageBlockTime do
end end
defp average_block_cache_period do defp average_block_cache_period do
case Integer.parse(System.get_env("CACE_AVERAGE_BLOCK_PERIOD", "")) do case Integer.parse(System.get_env("CACHE_AVERAGE_BLOCK_PERIOD", "")) do
{secs, ""} -> :timer.seconds(secs) {secs, ""} -> :timer.seconds(secs)
_ -> :timer.minutes(30) _ -> :timer.minutes(30)
end end

@ -37,7 +37,7 @@ defmodule Indexer.Block.Realtime.Fetcher do
@behaviour Block.Fetcher @behaviour Block.Fetcher
@minimum_safe_polling_period :timer.seconds(5) @minimum_safe_polling_period :timer.seconds(1)
@enforce_keys ~w(block_fetcher)a @enforce_keys ~w(block_fetcher)a
defstruct ~w(block_fetcher subscription previous_number max_number_seen timer)a defstruct ~w(block_fetcher subscription previous_number max_number_seen timer)a

Loading…
Cancel
Save