From 1283bbb844e3f975889fe4ebb1ce0401926cc848 Mon Sep 17 00:00:00 2001 From: Viktor Baranov Date: Sun, 7 Nov 2021 22:34:32 +0300 Subject: [PATCH] Set explicit ascending order by hash in acquire transactions query of internal transactions import --- CHANGELOG.md | 1 + .../lib/explorer/chain/import/runner/internal_transactions.ex | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef634e869b..11671ea673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex b/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex index 6433b408a9..557126c0ab 100644 --- a/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex +++ b/apps/explorer/lib/explorer/chain/import/runner/internal_transactions.ex @@ -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" )