mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
linting
This commit is contained in:
@@ -100,7 +100,6 @@ fn reconstruct_default_header_block<E: EthSpec>(
|
||||
ForkName::Capella => ExecutionPayloadCapella::default().into(),
|
||||
ForkName::Deneb => ExecutionPayloadDeneb::default().into(),
|
||||
ForkName::Electra => ExecutionPayloadElectra::default().into(),
|
||||
ForkName::Heze => ExecutionPayloadHeze::default().into(),
|
||||
ForkName::Fulu => ExecutionPayloadFulu::default().into(),
|
||||
ForkName::Gloas => ExecutionPayloadGloas::default().into(),
|
||||
ForkName::Heze => ExecutionPayloadHeze::default().into(),
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::{
|
||||
BeaconChain, BeaconChainError, BeaconChainTypes,
|
||||
validator_monitor::get_slot_delay_ms,
|
||||
|
||||
@@ -695,9 +695,6 @@ pub fn mock_execution_layer_from_parts<E: EthSpec>(
|
||||
HARNESS_GENESIS_TIME
|
||||
+ (spec.get_slot_duration().as_secs()) * E::slots_per_epoch() * epoch.as_u64()
|
||||
});
|
||||
let heze_time = spec.heze_fork_epoch.map(|epoch| {
|
||||
HARNESS_GENESIS_TIME + spec.get_slot_duration().as_secs() * E::slots_per_epoch() * epoch.as_u64()
|
||||
});
|
||||
let osaka_time = spec.fulu_fork_epoch.map(|epoch| {
|
||||
HARNESS_GENESIS_TIME
|
||||
+ (spec.get_slot_duration().as_secs()) * E::slots_per_epoch() * epoch.as_u64()
|
||||
|
||||
@@ -923,11 +923,6 @@ async fn invalid_signature_attester_slashing() {
|
||||
.push(attester_slashing.as_electra().unwrap().clone())
|
||||
.expect("should update attester slashing");
|
||||
}
|
||||
BeaconBlockBodyRefMut::Heze(blk) => {
|
||||
blk.attester_slashings
|
||||
.push(attester_slashing.as_electra().unwrap().clone())
|
||||
.expect("should update attester slashing");
|
||||
}
|
||||
BeaconBlockBodyRefMut::Gloas(blk) => {
|
||||
blk.attester_slashings
|
||||
.push(attester_slashing.as_electra().unwrap().clone())
|
||||
@@ -997,10 +992,6 @@ async fn invalid_signature_attestation() {
|
||||
.attestations
|
||||
.get_mut(0)
|
||||
.map(|att| att.signature = junk_aggregate_signature()),
|
||||
BeaconBlockBodyRefMut::Heze(blk) => blk
|
||||
.attestations
|
||||
.get_mut(0)
|
||||
.map(|att| att.signature = junk_aggregate_signature()),
|
||||
BeaconBlockBodyRefMut::Gloas(blk) => blk
|
||||
.attestations
|
||||
.get_mut(0)
|
||||
|
||||
@@ -33,7 +33,6 @@ fn get_harness_heze(validator_count: usize) -> BeaconChainHarness<EphemeralHarne
|
||||
let harness = BeaconChainHarness::builder(MainnetEthSpec)
|
||||
.spec(spec)
|
||||
.chain_config(ChainConfig {
|
||||
reconstruct_historic_states: true,
|
||||
..ChainConfig::default()
|
||||
})
|
||||
.keypairs(KEYPAIRS[0..validator_count].to_vec())
|
||||
|
||||
Reference in New Issue
Block a user