mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Electra attestation changes sean review (#5972)
* instantiate empty bitlist in unreachable code * clean up error conversion * fork enabled bool cleanup * remove a couple todos * return bools instead of options in `aggregate` and use the result * delete commented out code * use map macros in simple transformations * remove signers_disjoint_from * get ef tests compiling * get ef tests compiling * update intentionally excluded files
This commit is contained in:
@@ -39,7 +39,7 @@ use std::ptr;
|
||||
use types::{
|
||||
sync_aggregate::Error as SyncAggregateError, typenum::Unsigned, AbstractExecPayload,
|
||||
Attestation, AttestationData, AttesterSlashing, BeaconState, BeaconStateError, ChainSpec,
|
||||
Epoch, EthSpec, ForkName, ProposerSlashing, SignedBeaconBlock, SignedBlsToExecutionChange,
|
||||
Epoch, EthSpec, ProposerSlashing, SignedBeaconBlock, SignedBlsToExecutionChange,
|
||||
SignedVoluntaryExit, Slot, SyncAggregate, SyncCommitteeContribution, Validator,
|
||||
};
|
||||
|
||||
@@ -316,10 +316,10 @@ impl<E: EthSpec> OperationPool<E> {
|
||||
)
|
||||
.inspect(|_| num_curr_valid += 1);
|
||||
|
||||
let curr_epoch_limit = if fork_name < ForkName::Electra {
|
||||
E::MaxAttestations::to_usize()
|
||||
} else {
|
||||
let curr_epoch_limit = if fork_name.electra_enabled() {
|
||||
E::MaxAttestationsElectra::to_usize()
|
||||
} else {
|
||||
E::MaxAttestations::to_usize()
|
||||
};
|
||||
let prev_epoch_limit = if let BeaconState::Base(base_state) = state {
|
||||
std::cmp::min(
|
||||
|
||||
Reference in New Issue
Block a user