mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
add electra fork enabled fn to ForkName impl (#36)
* add electra fork enabled fn to ForkName impl * remove inadvertent file
This commit is contained in:
committed by
dapplion
parent
9e84779522
commit
7af3f2eb35
@@ -1341,7 +1341,10 @@ pub fn verify_committee_index<E: EthSpec>(
|
||||
attestation: AttestationRef<E>,
|
||||
spec: &ChainSpec,
|
||||
) -> Result<(), Error> {
|
||||
if spec.fork_name_at_slot::<E>(attestation.data().slot) >= ForkName::Electra {
|
||||
if spec
|
||||
.fork_name_at_slot::<E>(attestation.data().slot)
|
||||
.electra_enabled()
|
||||
{
|
||||
// Check to ensure that the attestation is for a single committee.
|
||||
let num_committee_bits = get_committee_indices::<E>(
|
||||
attestation
|
||||
|
||||
Reference in New Issue
Block a user