mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
Publish all aggregates
This commit is contained in:
@@ -367,9 +367,15 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
|
|||||||
let duty = &duty_and_proof.duty;
|
let duty = &duty_and_proof.duty;
|
||||||
let attestation_data = attestation_data_ref;
|
let attestation_data = attestation_data_ref;
|
||||||
|
|
||||||
|
let fork_name = self
|
||||||
|
.context
|
||||||
|
.eth2_config
|
||||||
|
.spec
|
||||||
|
.fork_name_at_slot::<E>(attestation_data.slot);
|
||||||
|
|
||||||
// Ensure that the attestation matches the duties.
|
// Ensure that the attestation matches the duties.
|
||||||
#[allow(clippy::suspicious_operation_groupings)]
|
#[allow(clippy::suspicious_operation_groupings)]
|
||||||
if duty.slot != attestation_data.slot || duty.committee_index != attestation_data.index
|
if duty.slot != attestation_data.slot || (fork_name < ForkName::Electra && duty.committee_index != attestation_data.index)
|
||||||
{
|
{
|
||||||
crit!(
|
crit!(
|
||||||
log,
|
log,
|
||||||
@@ -383,12 +389,6 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
|
|||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
let fork_name = self
|
|
||||||
.context
|
|
||||||
.eth2_config
|
|
||||||
.spec
|
|
||||||
.fork_name_at_slot::<E>(attestation_data.slot);
|
|
||||||
|
|
||||||
let mut attestation = if fork_name >= ForkName::Electra {
|
let mut attestation = if fork_name >= ForkName::Electra {
|
||||||
let mut committee_bits: BitVector<E::MaxCommitteesPerSlot> = BitVector::default();
|
let mut committee_bits: BitVector<E::MaxCommitteesPerSlot> = BitVector::default();
|
||||||
committee_bits
|
committee_bits
|
||||||
|
|||||||
Reference in New Issue
Block a user