|
|
@ -285,6 +285,8 @@ defmodule Indexer.Block.Catchup.FetcherTest do |
|
|
|
|
|
|
|
|
|
|
|
assert count(Chain.Block) == 0 |
|
|
|
assert count(Chain.Block) == 0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Process.sleep(50) |
|
|
|
|
|
|
|
|
|
|
|
assert %{first_block_number: ^block_number, last_block_number: 0, missing_block_count: 2, shrunk: false} = |
|
|
|
assert %{first_block_number: ^block_number, last_block_number: 0, missing_block_count: 2, shrunk: false} = |
|
|
|
Fetcher.task(%Fetcher{ |
|
|
|
Fetcher.task(%Fetcher{ |
|
|
|
block_fetcher: %Block.Fetcher{ |
|
|
|
block_fetcher: %Block.Fetcher{ |
|
|
@ -438,6 +440,8 @@ defmodule Indexer.Block.Catchup.FetcherTest do |
|
|
|
|
|
|
|
|
|
|
|
Process.register(pid, BlockReward) |
|
|
|
Process.register(pid, BlockReward) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Process.sleep(50) |
|
|
|
|
|
|
|
|
|
|
|
assert %{first_block_number: ^block_number, last_block_number: 0, missing_block_count: 2, shrunk: false} = |
|
|
|
assert %{first_block_number: ^block_number, last_block_number: 0, missing_block_count: 2, shrunk: false} = |
|
|
|
Fetcher.task(%Fetcher{ |
|
|
|
Fetcher.task(%Fetcher{ |
|
|
|
block_fetcher: %Block.Fetcher{ |
|
|
|
block_fetcher: %Block.Fetcher{ |
|
|
@ -586,6 +590,8 @@ defmodule Indexer.Block.Catchup.FetcherTest do |
|
|
|
|
|
|
|
|
|
|
|
Process.register(pid, BlockReward) |
|
|
|
Process.register(pid, BlockReward) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Process.sleep(50) |
|
|
|
|
|
|
|
|
|
|
|
assert %{first_block_number: ^block_number, last_block_number: 0, missing_block_count: 2, shrunk: false} = |
|
|
|
assert %{first_block_number: ^block_number, last_block_number: 0, missing_block_count: 2, shrunk: false} = |
|
|
|
Fetcher.task(%Fetcher{ |
|
|
|
Fetcher.task(%Fetcher{ |
|
|
|
block_fetcher: %Block.Fetcher{ |
|
|
|
block_fetcher: %Block.Fetcher{ |
|
|
|