Skip to content
Closed
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ impl StreamBlocks {
pub async fn execute(&self) -> Result<(), anyhow::Error> {
let mut client = GrpcDaSequencerClient::try_connect(
&Url::parse(&self.light_node_url).expect("Can't parse provided url."),
None,
10,
)
.await
.expect("gRPC client connection failed.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ where
pub async fn run(mut self, da_connection_url: Url) -> anyhow::Result<()> {
let synced_height = self.da_db.get_synced_height().await?;
info!("DA synced height: {:?}", synced_height);
let mut da_client = GrpcDaSequencerClient::try_connect(&da_connection_url).await?;
let mut da_client =
GrpcDaSequencerClient::try_connect(&da_connection_url, None, 10).await?;
let mut blocks_from_da = da_client
.stream_read_from_height(StreamReadFromHeightRequest { height: synced_height })
.await
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ impl BackgroundTask {

match self.inner {
Full(transaction_pipe) => {
let da_client = GrpcDaSequencerClient::try_connect(&da_connection_url).await?;
let da_client =
GrpcDaSequencerClient::try_connect(&da_connection_url, None, 10).await?;
transaction_pipe.run(da_client).await
}
ReadOnly(null_mempool) => null_mempool.run().await,
Expand Down