lose_consensus function: remove excessive select

v6.0.0-dev
Viktor Baranov 3 years ago
parent 1aa3bf6b39
commit 0753b6c42d
  1. 1
      CHANGELOG.md
  2. 3
      apps/explorer/lib/explorer/chain/import/runner/blocks.ex

@ -275,6 +275,7 @@
- [#8529](https://github.com/blockscout/blockscout/pull/8529) - Move PolygonEdge-related migration to the corresponding ecto repository
- [#8504](https://github.com/blockscout/blockscout/pull/8504) - Deploy new UI through Makefile
- [#8501](https://github.com/blockscout/blockscout/pull/8501) - Conceal secondary ports in docker compose setup
- [#5322](https://github.com/blockscout/blockscout/pull/5322) - DB denormalization: block consensus and timestamp in transaction table
<details>
<summary>Dependencies version bumps</summary>

@ -401,8 +401,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
join: s in subquery(acquire_query),
on: transaction.block_hash == s.hash,
# we don't want to remove consensus from blocks that will be upserted
where: transaction.block_hash not in ^hashes,
select: transaction.block_hash
where: transaction.block_hash not in ^hashes
),
[set: [block_consensus: false, updated_at: updated_at]],
timeout: timeout

Loading…
Cancel
Save