We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b84b7 commit 2a24d5bCopy full SHA for 2a24d5b
lib/lambda_ethereum_consensus/validator/utils.ex
@@ -101,18 +101,4 @@ defmodule LambdaEthereumConsensus.Validator.Utils do
101
"Invalid epoch #{epoch}, should be in the current or next sync committee period"
102
end
103
104
-
105
- @spec sync_committee_aggregator?(Types.bls_signature()) :: boolean()
106
- def sync_committee_aggregator?(signature) do
107
- modulo =
108
- ChainSpec.get("SYNC_COMMITTEE_SIZE")
109
- |> div(Constants.sync_committee_subnet_count())
110
- |> div(Constants.target_aggregators_per_sync_subcommittee())
111
- |> max(1)
112
113
- SszEx.hash(signature)
114
- |> binary_part(0, 8)
115
- |> :binary.decode_unsigned(:little)
116
- |> rem(modulo) == 0
117
- end
118
0 commit comments