Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions script/bin/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use sp1_vector_primitives::types::ProofType;
use sp1_vectorx_script::relay::{self};
use sp1_vectorx_script::SP1_VECTOR_ELF;
use tracing::level_filters::LevelFilter;
use tracing::{debug, error, info, instrument};
use tracing::{debug, error, info, instrument, warn};
use tracing_subscriber::layer::SubscriberExt;
use tracing_subscriber::util::SubscriberInitExt;

Expand Down Expand Up @@ -884,7 +884,7 @@ where
usd_estimate = round_to_decimals(effective_gas_estimate, 2)
);

error!(
warn!(
message = "Failed to match send proof condition",
gas_estimate = effective_gas_estimate,
attempts = attempt
Expand All @@ -893,13 +893,13 @@ where
// 2. Otherwise let's wait and see if the price will go down later. Do this
// for [`max_estimate_retries`] times
if attempt < max_estimate_retries {
error!(message = "Retrying...",);
warn!(message = "Retrying...",);
sleep(Duration::from_secs(retry_sleep_interval)).await;
attempt += 1;
continue;
}

error!(message = "Exhausted all retires. Checking one more time but this time with a higher threshold",);
warn!(message = "Exhausted all retires. Checking one more time but this time with a higher threshold",);

// 3. If we reached the maximum number of retires we should check one more time,
// but this time with a higher threshold. If the higher threshold doesn't help
Expand All @@ -913,7 +913,7 @@ where

// If we are here it means that we have exhausted all the retires and everything.
// There is nothing that we can do now. :(
error!(message = "Exhausted all options. Failed to submit proof. Exiting loop");
warn!(message = "Exhausted all options. Failed to submit proof. Exiting loop");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be useful to add effective_gas_estimate to this log.

bail!("Failed to match send proof condition");
};

Expand Down
Loading