mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +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
@@ -180,7 +180,7 @@ impl<E: EthSpec> LoadCase for ForkChoiceTest<E> {
|
||||
})
|
||||
}
|
||||
Step::Attestation { attestation } => {
|
||||
if fork_name >= ForkName::Electra {
|
||||
if fork_name.electra_enabled() {
|
||||
ssz_decode_file(&path.join(format!("{}.ssz_snappy", attestation))).map(
|
||||
|attestation| Step::Attestation {
|
||||
attestation: Attestation::Electra(attestation),
|
||||
@@ -195,7 +195,7 @@ impl<E: EthSpec> LoadCase for ForkChoiceTest<E> {
|
||||
}
|
||||
}
|
||||
Step::AttesterSlashing { attester_slashing } => {
|
||||
if fork_name >= ForkName::Electra {
|
||||
if fork_name.electra_enabled() {
|
||||
ssz_decode_file(&path.join(format!("{}.ssz_snappy", attester_slashing)))
|
||||
.map(|attester_slashing| Step::AttesterSlashing {
|
||||
attester_slashing: AttesterSlashing::Electra(attester_slashing),
|
||||
|
||||
Reference in New Issue
Block a user