Skip to content

Commit

Permalink
Fix 5288: Doesn't POST if attestations is empty. (#5318)
Browse files Browse the repository at this point in the history
* changed to is_empty() and removed WARN

* added log argument

* fix: issue 5288
  • Loading branch information
kamuik16 authored Mar 7, 2024
1 parent bf118a1 commit b961457
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions validator_client/src/attestation_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
.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
Expand Down

0 comments on commit b961457

Please sign in to comment.