Skip to content

Commit

Permalink
Fix loading P2P node view when network patch is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmanzanera committed Apr 17, 2023
1 parent 90e7065 commit 3f49463
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/archethic/p2p/mem_table_loader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ defmodule Archethic.P2P.MemTableLoader do
P2P.set_node_globally_synced(node_key)
P2P.set_node_globally_available(node_key, availability_update)
P2P.set_node_average_availability(node_key, avg_availability)
P2P.update_node_network_patch(node_key, network_patch)

if network_patch do
P2P.update_node_network_patch(node_key, network_patch)
end

[] ->
P2P.set_node_globally_synced(node_key)
Expand Down

0 comments on commit 3f49463

Please sign in to comment.