mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Update slasher/src/database.rs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user