diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fd4549adf..9605fda251 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ - [#5239](https://github.com/blockscout/blockscout/pull/5239) - Add accounting for block rewards in `getblockreward` api method ### 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 - [#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 diff --git a/apps/explorer/lib/explorer/counters/average_block_time.ex b/apps/explorer/lib/explorer/counters/average_block_time.ex index 81142283d8..2c575a5fac 100644 --- a/apps/explorer/lib/explorer/counters/average_block_time.ex +++ b/apps/explorer/lib/explorer/counters/average_block_time.ex @@ -130,7 +130,7 @@ defmodule Explorer.Counters.AverageBlockTime do end 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) _ -> :timer.minutes(30) end diff --git a/apps/indexer/lib/indexer/block/realtime/fetcher.ex b/apps/indexer/lib/indexer/block/realtime/fetcher.ex index 4529a76134..8dcba66f57 100644 --- a/apps/indexer/lib/indexer/block/realtime/fetcher.ex +++ b/apps/indexer/lib/indexer/block/realtime/fetcher.ex @@ -37,7 +37,7 @@ defmodule Indexer.Block.Realtime.Fetcher do @behaviour Block.Fetcher - @minimum_safe_polling_period :timer.seconds(5) + @minimum_safe_polling_period :timer.seconds(1) @enforce_keys ~w(block_fetcher)a defstruct ~w(block_fetcher subscription previous_number max_number_seen timer)a