Skip to content

Commit

Permalink
change how celestia blob are fetch to test
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev committed Jan 22, 2025
1 parent 9dd4c62 commit 1473fcf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions protocol-units/da/movement/protocol/da/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ pub trait DaOperations: Send + Sync {
&self,
start_height: u64,
) -> Pin<Box<dyn Future<Output = Result<DaBlobStream, DaError>> + Send + '_>> {
tracing::info!("TEST Da lib DaOperations stream_da_blobs_from_height start");
let fut = async move {
let certificate_stream = self.stream_certificates().await?;
let stream = try_stream! {
Expand All @@ -120,13 +119,12 @@ pub trait DaOperations: Send + Sync {

match certificate {
Ok(Certificate::Height(height)) if height > last_height => {
let blob_stream = self
.stream_da_blobs_between_heights(last_height, height)
.await?;
tokio::pin!(blob_stream);

while let Some(blob) = blob_stream.next().await {
yield blob?;
for height in last_height..height {
info!("getting certified blobs at height {}", height);
let blobs = self.get_da_blobs_at_height_for_stream(height).await?;
for blob in blobs {
yield (DaHeight(height), blob);
}
}

last_height = height;
Expand Down

0 comments on commit 1473fcf

Please sign in to comment.