Update slasher/src/database.rs

This commit is contained in:
realbigsean
2024-06-21 10:48:43 -04:00
committed by GitHub
parent 70a80d5da0
commit 09141ec51a

View File

@@ -258,7 +258,7 @@ impl IndexedAttestationOnDisk {
spec: &ChainSpec,
) -> Result<IndexedAttestation<E>, Error> {
let fork_at_target_epoch = spec.fork_name_at_epoch(self.data.target.epoch);
if fork_at_target_epoch >= ForkName::Electra {
if fork_at_target_epoch.electra_enabled() {
let attesting_indices = VariableList::new(self.attesting_indices)?;
Ok(IndexedAttestation::Electra(IndexedAttestationElectra {
attesting_indices,