Skip to content

Commit 8964069

Browse files
authored
Merge pull request #16 from protofire/staging-harmony
fix: add epoch to import
2 parents 5a71445 + 3c84523 commit 8964069

File tree

1 file changed

+4
-2
lines changed
  • apps/explorer/lib/explorer/chain/import/runner

1 file changed

+4
-2
lines changed

apps/explorer/lib/explorer/chain/import/runner/blocks.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
335335
set: [
336336
consensus: fragment("EXCLUDED.consensus"),
337337
difficulty: fragment("EXCLUDED.difficulty"),
338+
epoch: fragment("EXCLUDED.epoch"),
338339
gas_limit: fragment("EXCLUDED.gas_limit"),
339340
gas_used: fragment("EXCLUDED.gas_used"),
340341
miner_hash: fragment("EXCLUDED.miner_hash"),
@@ -351,8 +352,9 @@ defmodule Explorer.Chain.Import.Runner.Blocks do
351352
],
352353
where:
353354
fragment("EXCLUDED.consensus <> ?", block.consensus) or fragment("EXCLUDED.difficulty <> ?", block.difficulty) or
354-
fragment("EXCLUDED.gas_limit <> ?", block.gas_limit) or fragment("EXCLUDED.gas_used <> ?", block.gas_used) or
355-
fragment("EXCLUDED.miner_hash <> ?", block.miner_hash) or fragment("EXCLUDED.nonce <> ?", block.nonce) or
355+
fragment("EXCLUDED.epoch <> ?", block.epoch) or fragment("EXCLUDED.gas_limit <> ?", block.gas_limit) or
356+
fragment("EXCLUDED.gas_used <> ?", block.gas_used) or fragment("EXCLUDED.miner_hash <> ?", block.miner_hash) or
357+
fragment("EXCLUDED.nonce <> ?", block.nonce) or
356358
fragment("EXCLUDED.number <> ?", block.number) or fragment("EXCLUDED.parent_hash <> ?", block.parent_hash) or
357359
fragment("EXCLUDED.size <> ?", block.size) or fragment("EXCLUDED.timestamp <> ?", block.timestamp) or
358360
fragment("EXCLUDED.total_difficulty <> ?", block.total_difficulty)

0 commit comments

Comments
 (0)