Merge pull request #2799 from poanetwork/ab-fix-empty-node-bug

add last_block_number=0 for empty node and db
ab-change-primary-key-for-internal-transactions
Victor Baranov 5 years ago committed by GitHub
commit bfb8fd0345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/indexer/lib/indexer/block/catchup/fetcher.ex

@ -20,6 +20,7 @@
### Fixes
- [#2793](https://github.com/poanetwork/blockscout/pull/2793) - Hide "We are indexing this chain right now. Some of the counts may be inaccurate" banner if no txs in blockchain
- [#2779](https://github.com/poanetwork/blockscout/pull/2779) - fix fetching `latin1` encoded data
- [#2799](https://github.com/poanetwork/blockscout/pull/2799) - fix catchup fetcher for empty node and db
- [#2783](https://github.com/poanetwork/blockscout/pull/2783) - Fix stuck value and ticker on the token page
- [#2781](https://github.com/poanetwork/blockscout/pull/2781) - optimize txlist json rpc
- [#2770](https://github.com/poanetwork/blockscout/pull/2770) - do not re-fetch token instances without uris

@ -76,7 +76,7 @@ defmodule Indexer.Block.Catchup.Fetcher do
case latest_block(json_rpc_named_arguments) do
# let realtime indexer get the genesis block
0 ->
%{first_block_number: 0, missing_block_count: 0, shrunk: false}
%{first_block_number: 0, missing_block_count: 0, last_block_number: 0, shrunk: false}
latest_block_number ->
# realtime indexer gets the current latest block

Loading…
Cancel
Save