mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Merge unstable
This commit is contained in:
@@ -1030,7 +1030,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
|
||||
let can_spawn = self.current_workers < self.config.max_workers;
|
||||
let drop_during_sync = work_event
|
||||
.as_ref()
|
||||
.map_or(false, |event| event.drop_during_sync);
|
||||
.is_some_and(|event| event.drop_during_sync);
|
||||
|
||||
let idle_tx = idle_tx.clone();
|
||||
let modified_queue_id = match work_event {
|
||||
@@ -1731,7 +1731,7 @@ mod tests {
|
||||
#[test]
|
||||
fn min_queue_len() {
|
||||
// State with no validators.
|
||||
let spec = ForkName::latest().make_genesis_spec(ChainSpec::mainnet());
|
||||
let spec = ForkName::latest_stable().make_genesis_spec(ChainSpec::mainnet());
|
||||
let genesis_time = 0;
|
||||
let state = BeaconState::<MainnetEthSpec>::new(genesis_time, Eth1Data::default(), &spec);
|
||||
assert_eq!(state.validators().len(), 0);
|
||||
|
||||
Reference in New Issue
Block a user