From c63d0d2d9409db8e74fd90617b034faf685d62a5 Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 3 Apr 2019 15:40:08 +0300 Subject: [PATCH 1/2] use seconds as period measure --- apps/explorer/lib/explorer/chain/transaction_count_cache.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/explorer/lib/explorer/chain/transaction_count_cache.ex b/apps/explorer/lib/explorer/chain/transaction_count_cache.ex index 5e441734c2..95685c0fd4 100644 --- a/apps/explorer/lib/explorer/chain/transaction_count_cache.ex +++ b/apps/explorer/lib/explorer/chain/transaction_count_cache.ex @@ -143,7 +143,7 @@ defmodule Explorer.Chain.TransactionCountCache do case System.get_env("TXS_COUNT_CACHE_PERIOD") do value when is_binary(value) -> case Integer.parse(value) do - {integer, ""} -> integer * 1_000 * 60 * 60 + {integer, ""} -> integer * 1_000 _ -> nil end From e17aaac7a8790608482971b242065dfd78b6fe0a Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Wed, 3 Apr 2019 15:43:21 +0300 Subject: [PATCH 2/2] add changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d2255cf86..b470291f7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - [#1688](https://github.com/poanetwork/blockscout/pull/1688) - do not fail if failure reason is atom - [#1692](https://github.com/poanetwork/blockscout/pull/1692) - exclude decompiled smart contract from encoding - [#1684](https://github.com/poanetwork/blockscout/pull/1684) - Discard child block with parent_hash not matching hash of imported block + - [#1699](https://github.com/poanetwork/blockscout/pull/1699) - use seconds as transaction cache period measure ### Chore