Skip to content

Commit

Permalink
[pipelines] add waiting time to get settlementclaims after initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
ochaloup committed Jul 22, 2024
1 parent ed01d2d commit b11bf5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settlement-pipelines/src/bin/init_settlement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ async fn real_main(reporting: &mut ReportHandler<InitSettlementReport>) -> anyho
)
.await?;

// RPC nodes are not in sync and load-balanced nodes may provide different data
// let's wait 15 seconds to get transaction finalized and propagated
tokio::time::sleep(tokio::time::Duration::from_secs(15)).await;

upsize_settlements(
&program,
rpc_client.clone(),
Expand Down

0 comments on commit b11bf5e

Please sign in to comment.