     {:noreply, new_state}
   end
 
+  # repair blocks on startup
+  def handle_info(:repair, state) do
+    Unclaimed.repair_blocks()
+    {:noreply, state}
+  end
+
   # updates the state in the server module
   def handle_info(:update, state) do
     Process.send(Server, {:state_update, state}, [])


    addresses = Addresses.list_latest()

    Unclaimed.repair_blocks()

    price = %{
      neo: %{
        btc: NeoBtc.last_price_full(),

    }

    Process.send(NeoscanMonitor.Server, {:first_state_update, new_state}, [])
    Process.send(self(), :repair)
    # In 1s
    Process.send_after(self(), :update, 1_000)
    # In 1s
