Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to disable block rewards in indexer config #1572

Merged
merged 2 commits into from
Mar 18, 2019

Conversation

nervehammer
Copy link
Contributor

Not all chains distribute block reward, e.g. SpringChain. If chain don't have block reward, console is spammed with error: application=indexer fetcher=block_reward count=10 error_count=10 [error] failed to fetch: @㍪: (404) Not Found

Fixes #1526 and #1563.

Just uncomment the line config :indexer, Indexer.Block.Reward.Supervisor, disabled?: true in apps/indexer/config/config.exs

@ghost ghost assigned vbaranov Mar 15, 2019
@ghost ghost added the in progress label Mar 15, 2019
@nervehammer
Copy link
Contributor Author

nervehammer commented Mar 16, 2019

nervehammer@MonsterPad:~/push/blockscout$ mix test --exclude no_geth
==> ethereum_jsonrpc
Excluding tags: [:no_geth]

..........................warning: deprecated time unit: :seconds. A time unit should be :second, :millisecond, :microsecond, :nanosecond, or a positive integer
  (elixir) lib/calendar/iso.ex:703: Calendar.ISO.from_unix/2
  (elixir) lib/calendar/datetime.ex:118: DateTime.from_unix/3
  (elixir) lib/calendar/datetime.ex:166: DateTime.from_unix!/3
  (ethereum_jsonrpc) lib/ethereum_jsonrpc/block.ex:447: EthereumJSONRPC.Block.entry_to_elixir/1
  (elixir) lib/map.ex:210: Map.new_transform/3
  (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
  (for doctest at) lib/ethereum_jsonrpc/blocks.ex:276: EthereumJSONRPC.BlocksTest."doctest EthereumJSONRPC.Blocks.to_elixir/1 (4)"/1
  (ex_unit) lib/ex_unit/runner.ex:355: ExUnit.Runner.exec_test/1
  (stdlib) timer.erl:166: :timer.tc/1
  (ex_unit) lib/ex_unit/runner.ex:306: anonymous fn/4 in ExUnit.Runner.spawn_test_monitor/4

warning: deprecated time unit: :seconds. A time unit should be :second, :millisecond, :microsecond, :nanosecond, or a positive integer
  (elixir) lib/calendar/iso.ex:717: Calendar.ISO.precision_for_unit/1
  (elixir) lib/calendar/iso.ex:708: Calendar.ISO.from_unix/2
  (elixir) lib/calendar/datetime.ex:118: DateTime.from_unix/3
  (elixir) lib/calendar/datetime.ex:166: DateTime.from_unix!/3
  (ethereum_jsonrpc) lib/ethereum_jsonrpc/block.ex:447: EthereumJSONRPC.Block.entry_to_elixir/1
  (elixir) lib/map.ex:210: Map.new_transform/3
  (for doctest at) lib/ethereum_jsonrpc/block.ex:372: EthereumJSONRPC.BlockTest."doctest EthereumJSONRPC.Block.to_elixir/1 (5)"/1
  (ex_unit) lib/ex_unit/runner.ex:355: ExUnit.Runner.exec_test/1
  (stdlib) timer.erl:166: :timer.tc/1
  (ex_unit) lib/ex_unit/runner.ex:306: anonymous fn/4 in ExUnit.Runner.spawn_test_monitor/4

.............................................................................................

Finished in 0.9 seconds
50 doctests, 86 tests, 0 failures, 17 excluded

ran same test locally everything is fine @vbaranov , @zachdaniel

@vbaranov vbaranov merged commit fdc94c8 into blockscout:master Mar 18, 2019
@ghost ghost removed the in progress label Mar 18, 2019
@smartblockdev
Copy link

smartblockdev commented Mar 23, 2022

application=indexer fetcher=block_reward count=10 error_count=10 [error] failed to fetch: @g: (404) Not Found
@f: (404) Not Found
@e: (404) Not Found
@d: (404) Not Found
@C: (404) Not Found
@b: (404) Not Found
@A: (404) Not Found
@@: (404) Not Found
@?: (404) Not Found
@: (404) Not Found

i am facing this issue please help,i also uncomment the "uncomment the line config :indexer, Indexer.Block.Reward.Supervisor, disabled?: true" in apps/indexer/config/config.exs but no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

block_reward failed to fetch
5 participants