Skip to content

Commit

Permalink
don't logs ValsetUpToDate error
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil committed Apr 20, 2022
1 parent 4c9e938 commit bb5115d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchestrator/cosmos_gravity/src/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ pub async fn send_ethereum_claims(

let msgs: Vec<Msg> = ordered_msgs.into_iter().map(|(_, v)| v).collect();

Ok(contact
contact
.send_message(&msgs, None, &[fee], Some(TIMEOUT), private_key)
.await?)
.await
}

/// Sends tokens from Cosmos to Ethereum. These tokens will not be sent immediately instead
Expand Down
3 changes: 3 additions & 0 deletions orchestrator/relayer/src/valset_relaying.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ pub async fn relay_valsets(
.await
{
Ok(v) => v,
// If we get the RecoverableError we don't need to log it, since it is a kind of flag to indicate that it was expected.
// And here we expect the ValsetUpToDate error which means that we don't need to update up to date valset.
Err(GravityError::RecoverableError(_)) => return,
Err(e) => {
error!(
"We were unable to find a valid validator set update to submit! {:?}",
Expand Down

0 comments on commit bb5115d

Please sign in to comment.