mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Fix 5288: Doesn't POST if attestations is empty. (#5318)
* changed to is_empty() and removed WARN * added log argument * fix: issue 5288
This commit is contained in:
@@ -430,6 +430,11 @@ impl<T: SlotClock + 'static, E: EthSpec> AttestationService<T, E> {
|
|||||||
.flatten()
|
.flatten()
|
||||||
.unzip();
|
.unzip();
|
||||||
|
|
||||||
|
if attestations.is_empty() {
|
||||||
|
warn!(log, "No attestations were published");
|
||||||
|
return Ok(None);
|
||||||
|
}
|
||||||
|
|
||||||
// Post the attestations to the BN.
|
// Post the attestations to the BN.
|
||||||
match self
|
match self
|
||||||
.beacon_nodes
|
.beacon_nodes
|
||||||
|
|||||||
Reference in New Issue
Block a user