Merge pull request #1318 from poanetwork/1311

Order derive_tranactions_forks SELECT to match transaction inserts
pull/1323/head
Luke Imhoff 6 years ago committed by GitHub
commit be37dc342e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/explorer/lib/explorer/chain/import/runner/blocks.ex

@ -129,7 +129,10 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
transaction.hash,
type(^inserted_at, transaction.inserted_at),
type(^updated_at, transaction.updated_at)
]
],
# order so that row ShareLocks are grabbed in a consistent order with
# `Explorer.Chain.Import.Runner.Transactions.insert`
order_by: transaction.hash
)
{select_sql, parameters} = SQL.to_sql(:all, repo, query)

Loading…
Cancel
Save