Skip to content

Commit

Permalink
Fix beacon live downloading aggregate from BD instead of quorum
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Nov 28, 2022
1 parent 9f03fdd commit bf28412
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/archethic_web/live/chains/beacon_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ defmodule ArchethicWeb.BeaconChainLive do
defp list_transactions_from_summaries(nil), do: []

defp list_transactions_from_aggregate(date = %DateTime{}) do
case BeaconChain.get_summaries_aggregate(date) do
nodes = P2P.authorized_and_available_nodes()

case BeaconChain.fetch_summaries_aggregate(date, nodes) do
{:ok, %SummaryAggregate{transaction_summaries: tx_summaries}} ->
Enum.sort_by(tx_summaries, & &1.timestamp, {:desc, DateTime})

Expand Down

0 comments on commit bf28412

Please sign in to comment.