Merge pull request #4872 from blockscout/vb-acquire_transactions-explicit-order

Set explicit ascending order by hash in acquire transactions query of internal transactions import
pull/4876/head
Victor Baranov 3 years ago committed by GitHub
commit 8b1cb6da84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex

@ -66,6 +66,7 @@
- [#4582](https://github.com/blockscout/blockscout/pull/4582) - Fix NaN input on write contract page
### Chore
- [#4872](https://github.com/blockscout/blockscout/pull/4872) - Set explicit ascending order by hash in acquire transactions query of internal transactions import
- [#4871](https://github.com/blockscout/blockscout/pull/4871) - Remove cumulative gas used update duplicate
- [#4860](https://github.com/blockscout/blockscout/pull/4860) - Node 16 support
- [#4828](https://github.com/blockscout/blockscout/pull/4828) - Logging for txs/day chart

@ -258,7 +258,7 @@ defmodule Explorer.Chain.Import.Runner.InternalTransactions do
where: t.block_hash in ^pending_block_hashes,
select: map(t, [:hash, :block_hash, :block_number, :cumulative_gas_used]),
# Enforce Transaction ShareLocks order (see docs: sharelocks.md)
order_by: t.hash,
order_by: [asc: t.hash],
lock: "FOR UPDATE"
)

Loading…
Cancel
Save