Skip to content

Commit

Permalink
Remove old verification for downloading io tx
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix authored and samuelmanzanera committed Feb 8, 2023
1 parent 166f4a2 commit c7fa23f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/archethic/self_repair/sync/transaction_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ defmodule Archethic.SelfRepair.Sync.TransactionHandler do
true
else
Enum.any?(mvt_addresses, fn address ->
io_storage_nodes = Election.chain_storage_nodes(address, node_list)
node_pool_address = Crypto.hash(Crypto.last_node_public_key())

Utils.key_in_node_list?(io_storage_nodes, Crypto.first_node_public_key()) or
address == node_pool_address
address
|> Election.chain_storage_nodes(node_list)
|> Utils.key_in_node_list?(Crypto.first_node_public_key())
end)
end
end
Expand Down

0 comments on commit c7fa23f

Please sign in to comment.