Skip to content

Commit 2a24d5b

Browse files
committed
Removed function needed in next PRs but not used
1 parent f8b84b7 commit 2a24d5b

File tree

1 file changed

+0
-14
lines changed
  • lib/lambda_ethereum_consensus/validator

1 file changed

+0
-14
lines changed

lib/lambda_ethereum_consensus/validator/utils.ex

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,4 @@ defmodule LambdaEthereumConsensus.Validator.Utils do
101101
"Invalid epoch #{epoch}, should be in the current or next sync committee period"
102102
end
103103
end
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
118104
end

0 commit comments

Comments
 (0)