Skip to content

Commit 5587f2d

Browse files
Add logs to track the retries
1 parent 5349bcc commit 5587f2d

File tree

1 file changed

+4
-0
lines changed
  • aggregation_mode/proof_aggregator/src/backend

1 file changed

+4
-0
lines changed

aggregation_mode/proof_aggregator/src/backend/retry.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ async fn wait_until_can_submit_aggregated_proof(
7575
proof_aggregation_service: AlignedProofAggregationServiceContract,
7676
monthly_budget_eth: f64,
7777
) -> Result<(), RetryError<AggregatedProofSubmissionError>> {
78+
info!("Started waiting until we can submit the aggregated proof.");
79+
7880
// We start on 24 hours because the proof aggregator runs once a day, so the time elapsed
7981
// should be considered over a 24h period.
8082
let mut time_elapsed = Duration::from_secs(24 * 3600);
@@ -93,6 +95,8 @@ async fn wait_until_can_submit_aggregated_proof(
9395
RetryError::Transient(AggregatedProofSubmissionError::GasPriceError(e.to_string()))
9496
})?;
9597

98+
info!("Fetched gas price from network: {gas_price}");
99+
96100
if helpers::should_send_proof_to_verify_on_chain(
97101
time_elapsed,
98102
monthly_budget_eth,

0 commit comments

Comments
 (0)