From b9614571a3abd615ae0f3243d45a31e864a5038d Mon Sep 17 00:00:00 2001 From: Krishang Shah <93703995+kamuik16@users.noreply.github.com> Date: Thu, 7 Mar 2024 14:19:18 +0530 Subject: [PATCH] Fix 5288: Doesn't POST if attestations is empty. (#5318) * changed to is_empty() and removed WARN * added log argument * 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 43b9d60e2..1c6b60add 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.is_empty() { + warn!(log, "No attestations were published"); + return Ok(None); + } + // Post the attestations to the BN. match self .beacon_nodes