From b11bf5e83fdf214c542fe8ee33abac883a1ffa66 Mon Sep 17 00:00:00 2001 From: Ondra Chaloupka Date: Mon, 22 Jul 2024 11:56:01 +0200 Subject: [PATCH] [pipelines] add waiting time to get settlementclaims after initialized --- settlement-pipelines/src/bin/init_settlement.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/settlement-pipelines/src/bin/init_settlement.rs b/settlement-pipelines/src/bin/init_settlement.rs index 06f00ca1..3a5d7143 100644 --- a/settlement-pipelines/src/bin/init_settlement.rs +++ b/settlement-pipelines/src/bin/init_settlement.rs @@ -133,6 +133,10 @@ async fn real_main(reporting: &mut ReportHandler) -> 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(),