mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Exit early on keystore upload error
This commit is contained in:
@@ -110,6 +110,11 @@ impl ValidatorSpecification {
|
|||||||
return Err(UploadError::IncorrectStatusCount(statuses.len() + 1));
|
return Err(UploadError::IncorrectStatusCount(statuses.len() + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Exit early if there's an error uploading.
|
||||||
|
if status.status == ImportKeystoreStatus::Error {
|
||||||
|
return Ok(status);
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(fee_recipient) = fee_recipient {
|
if let Some(fee_recipient) = fee_recipient {
|
||||||
http_client
|
http_client
|
||||||
.post_fee_recipient(
|
.post_fee_recipient(
|
||||||
|
|||||||
Reference in New Issue
Block a user