mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 11:41:28 +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:
parent
bf118a17d4
commit
b9614571a3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user