Merge branch 'unstable' into merge-unstable-to-deneb-20231005

This commit is contained in:
Jimmy Chen
2023-10-06 00:20:54 +11:00
3 changed files with 63 additions and 5 deletions

View File

@@ -491,6 +491,14 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
) -> Result<(), String> {
let log = self.context.log();
if !validator_duties
.iter()
.any(|duty_and_proof| duty_and_proof.selection_proof.is_some())
{
// Exit early if no validator is aggregator
return Ok(());
}
let aggregated_attestation = &self
.beacon_nodes
.first_success(