mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Update slasher/src/database.rs
This commit is contained in:
@@ -258,7 +258,7 @@ impl IndexedAttestationOnDisk {
|
|||||||
spec: &ChainSpec,
|
spec: &ChainSpec,
|
||||||
) -> Result<IndexedAttestation<E>, Error> {
|
) -> Result<IndexedAttestation<E>, Error> {
|
||||||
let fork_at_target_epoch = spec.fork_name_at_epoch(self.data.target.epoch);
|
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)?;
|
let attesting_indices = VariableList::new(self.attesting_indices)?;
|
||||||
Ok(IndexedAttestation::Electra(IndexedAttestationElectra {
|
Ok(IndexedAttestation::Electra(IndexedAttestationElectra {
|
||||||
attesting_indices,
|
attesting_indices,
|
||||||
|
|||||||
Reference in New Issue
Block a user