Skip to content

Commit

Permalink
renaming process attestations to a more descriptive name
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-o committed Sep 26, 2024
1 parent 3e755cd commit 2d8d8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lambda_ethereum_consensus/validator/block_builder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ defmodule LambdaEthereumConsensus.Validator.BlockBuilder do
graffiti: block_request.graffiti_message,
proposer_slashings: block_request.proposer_slashings,
attester_slashings: block_request.attester_slashings,
attestations: process_attestations(block_request.attestations),
attestations: select_best_aggregates(block_request.attestations),
deposits: block_request.deposits,
voluntary_exits: block_request.voluntary_exits,
bls_to_execution_changes: block_request.bls_to_execution_changes,
Expand Down Expand Up @@ -210,7 +210,7 @@ defmodule LambdaEthereumConsensus.Validator.BlockBuilder do
signature
end

defp process_attestations(attestations) do
defp select_best_aggregates(attestations) do
attestations
|> Enum.group_by(& &1.data.index)
|> Enum.map(fn {_, attestations} ->
Expand Down

0 comments on commit 2d8d8f5

Please sign in to comment.