Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions scripts/tests/genesis-sync-config-electra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ participants:
# nodes without validators, used for testing sync.
- cl_type: lighthouse
cl_image: lighthouse:local
supernode: true # no supernode in Electra, this is for future proof
validator_count: 0
- cl_type: lighthouse
cl_image: lighthouse:local
supernode: false
validator_count: 0
network_params:
seconds_per_slot: 6
electra_fork_epoch: 0
fulu_fork_epoch: 100000 # a really big number so this test stays in electra
preset: "minimal"
additional_services:
- tx_fuzz
Expand Down
3 changes: 1 addition & 2 deletions scripts/tests/genesis-sync-config-fulu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ participants:
validator_count: 0
network_params:
seconds_per_slot: 6
electra_fork_epoch: 0
fulu_fork_epoch: 1
fulu_fork_epoch: 0
preset: "minimal"
additional_services:
- tx_fuzz
Expand Down
3 changes: 2 additions & 1 deletion scripts/tests/network_params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ participants:
cl_image: lighthouse:local
cl_extra_params:
- --target-peers=3
supernode: true
count: 4
network_params:
electra_fork_epoch: 0
fulu_fork_epoch: 0
seconds_per_slot: 3
num_validator_keys_per_node: 20
global_log_level: debug
Expand Down
10 changes: 6 additions & 4 deletions validator_client/validator_services/src/attestation_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ impl<S: ValidatorStore + 'static, T: SlotClock + 'static> AttestationService<S,
// Create and publish an `Attestation` for all validators only once
// as the committee_index is not included in AttestationData post-Electra
let attestation_duties: Vec<_> = self.duties_service.attesters(slot).into_iter().collect();

// Return early if there is no attestation duties
if attestation_duties.is_empty() {
return Ok(());
}

let attestation_service = self.clone();

let attestation_data_handle = self
Expand Down Expand Up @@ -371,10 +377,6 @@ impl<S: ValidatorStore + 'static, T: SlotClock + 'static> AttestationService<S,
&[validator_metrics::ATTESTATIONS],
);

if validator_duties.is_empty() {
return Ok(());
}

let current_epoch = self
.slot_clock
.now()
Expand Down