Exit early on keystore upload error

This commit is contained in:
Paul Hauner
2022-08-29 19:07:13 +10:00
parent b2887f8b55
commit 4ccb7cbf4d

View File

@@ -110,6 +110,11 @@ impl ValidatorSpecification {
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 {
http_client
.post_fee_recipient(