diff --git a/apps/explorer/lib/explorer/chain/cache/blocks.ex b/apps/explorer/lib/explorer/chain/cache/blocks.ex index 11b75a4d09..ca968fb56d 100644 --- a/apps/explorer/lib/explorer/chain/cache/blocks.ex +++ b/apps/explorer/lib/explorer/chain/cache/blocks.ex @@ -21,7 +21,7 @@ defmodule Explorer.Chain.Cache.Blocks do def element_to_id(%Block{number: number}), do: number - def drop_nonconsensus([]), do: :ok + def drop_nonconsensus(numbers) when is_nil(numbers) or numbers == [], do: :ok def drop_nonconsensus(numbers) when is_list(numbers) do ConCache.update(cache_name(), ids_list_key(), fn ids ->