From e8619b2c0d9edacae9f52b0913d9e8c1f30344ef Mon Sep 17 00:00:00 2001 From: kamuik16 Date: Tue, 27 Feb 2024 12:16:35 +0530 Subject: [PATCH] fix: issue 5288 --- validator_client/src/attestation_service.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validator_client/src/attestation_service.rs b/validator_client/src/attestation_service.rs index 43b9d60e234..2e6a399bc81 100644 --- a/validator_client/src/attestation_service.rs +++ b/validator_client/src/attestation_service.rs @@ -430,6 +430,11 @@ impl AttestationService { .flatten() .unzip(); + if attestations.len() == 0 { + warn!("WARN: No attestations were published"); + return Ok(None); + } + // Post the attestations to the BN. match self .beacon_nodes