Merge pull request #4167 from blockscout/vb-deduplicate-block-numbers-on-acquire

Deduplicate block numbers in acquire_blocks function
pull/4129/head
Victor Baranov 4 years ago committed by GitHub
commit 09889e2506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 5
      apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex

@ -8,6 +8,7 @@
### Fixes
- [#4236](https://github.com/blockscout/blockscout/pull/4236) - Fix typo, constructor instead of contructor
- [#4167](https://github.com/blockscout/blockscout/pull/4167) - Deduplicate block numbers in acquire_blocks function
- [#4149](https://github.com/blockscout/blockscout/pull/4149) - Exclude smart_contract_additional_sources from JSON encoding in address schema
- [#4137](https://github.com/blockscout/blockscout/pull/4137) - Get token balance query improvement
- [#4038](https://github.com/blockscout/blockscout/pull/4038) - Add clause for abi_decode_address_output/1 when is_nil(address)

@ -214,7 +214,10 @@ defmodule Explorer.Chain.Import.Runner.InternalTransactions do
end
defp acquire_blocks(repo, changes_list) do
block_numbers = Enum.map(changes_list, & &1.block_number)
block_numbers =
changes_list
|> Enum.map(& &1.block_number)
|> Enum.dedup()
query =
from(

Loading…
Cancel
Save