           # Parse new blocks when they arrived
           high_cnt = retrieve(:high_cnt)
           cond do
-            high_cnt == block_cnt -> IO.puts "Explorer up to date"
+            high_cnt == block_cnt -> Logger.info("Explorer.Repo: up to date")
             state.parsing == false -> parse_blocks!(high_cnt, block_cnt)
             true -> nil
           end

  end

  def handle_cast({:parse_blocks, block, low, high}, state) do
    block |> parse_blocks!(low, high)
    {:noreply, state |> Map.put(:parsing, true)}
  end

  def handle_cast({:parsing_done, _low, high}, state) do
    # TODO: logging
    high |> store(:high_cnt)
    {:noreply, state |> Map.put(:parsing, false)}
  end


  def handle_info({_ref, %{height: height} }, state) do
    # TODO register parsed block height
    {:noreply, state}
  end

