Skip to content

Commit b961457

Browse files
authored
Fix 5288: Doesn't POST if attestations is empty. (#5318)
* changed to is_empty() and removed WARN * added log argument * fix: issue 5288
1 parent bf118a1 commit b961457

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

validator_client/src/attestation_service.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
430430
.flatten()
431431
.unzip();
432432

433+
if attestations.is_empty() {
434+
warn!(log, "No attestations were published");
435+
return Ok(None);
436+
}
437+
433438
// Post the attestations to the BN.
434439
match self
435440
.beacon_nodes

0 commit comments

Comments
 (0)