Skip to content

Commit

Permalink
up version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne committed Jun 5, 2023
1 parent 21b6212 commit 2091e32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
17 changes: 0 additions & 17 deletions lib/archethic/beacon_chain/subset/summary_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,6 @@ defmodule Archethic.BeaconChain.Subset.SummaryCache do
{:ok, state}
end

def code_change("1.1.0-rc1", state, _extra) do
backup_path = DateTime.utc_now() |> SummaryTimer.next_summary() |> recover_path()
backup_path_temp = backup_path <> "_temp"
File.rename(backup_path, backup_path_temp)

Enum.each(BeaconChain.list_subsets(), fn subset ->
:ets.lookup(@table_name, subset)
|> Enum.each(fn {_subset, {slot, pub_key}} ->
backup_slot(slot, pub_key)
end)
end)

File.rm(backup_path_temp)

{:ok, state}
end

def code_change(_, state, _), do: {:ok, state}

defp clean_previous_summary_cache(subset, previous_summary_time) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Archethic.MixProject do
def project do
[
app: :archethic,
version: "1.1.0-rc5",
version: "1.1.0",
build_path: "_build",
config_path: "config/config.exs",
deps_path: "deps",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"1.1.0-rc5",
{"1.1.0",
[{"1.0.7",
[{add_module,'Elixir.Archethic.BeaconChain.NetworkCoordinates'},
{add_module,'Elixir.Archethic.BeaconChain.Subset.StatsCollector'},
Expand Down Expand Up @@ -1054,7 +1054,7 @@
type => supervisor
}
]}},
{apply,{'Elixir.Mix.Tasks.Archethic.Migrate',run,["1.1.0-rc5",true]}}]}],
{apply,{'Elixir.Mix.Tasks.Archethic.Migrate',run,["1.1.0",true]}}]}],
[{"1.0.7",
[{delete_module,'Elixir.Archethic.BeaconChain.NetworkCoordinates'},
{delete_module,'Elixir.Archethic.BeaconChain.Subset.StatsCollector'},
Expand Down

0 comments on commit 2091e32

Please sign in to comment.