Skip to content

Commit

Permalink
fix acceptance resolver when resyncing
Browse files Browse the repository at this point in the history
  • Loading branch information
bchamagne committed Oct 8, 2024
1 parent ab547d5 commit 2b01917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/archethic/self_repair/network_chain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ defmodule Archethic.SelfRepair.NetworkChain do

case TransactionChain.fetch_last_address(genesis_address, nodes,
consistency_level: 8,
acceptance_resolver: &(&1.timestamp > local_last_address_timestamp)
acceptance_resolver:
&(DateTime.compare(&1.timestamp, local_last_address_timestamp) == :gt)
) do
{:ok, remote_last_address} ->
{:error, {genesis_address, remote_last_address}}
Expand Down

0 comments on commit 2b01917

Please sign in to comment.