Merge pull request #1699 from poanetwork/ab-use-seconds-to-update-transaction-cache

use seconds as transaction cache period measure
pull/1712/head
Ayrat Badykov 6 years ago committed by GitHub
commit 42f8e72e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/lib/explorer/chain/transaction_count_cache.ex

@ -14,6 +14,7 @@
- [#1688](https://github.com/poanetwork/blockscout/pull/1688) - do not fail if failure reason is atom - [#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 - [#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 - [#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
- [#1697](https://github.com/poanetwork/blockscout/pull/1697) - fix failing in rpc if balance is empty - [#1697](https://github.com/poanetwork/blockscout/pull/1697) - fix failing in rpc if balance is empty
### Chore ### Chore

@ -143,7 +143,7 @@ defmodule Explorer.Chain.TransactionCountCache do
case System.get_env("TXS_COUNT_CACHE_PERIOD") do case System.get_env("TXS_COUNT_CACHE_PERIOD") do
value when is_binary(value) -> value when is_binary(value) ->
case Integer.parse(value) do case Integer.parse(value) do
{integer, ""} -> integer * 1_000 * 60 * 60 {integer, ""} -> integer * 1_000
_ -> nil _ -> nil
end end

Loading…
Cancel
Save