Skip to content

Commit

Permalink
fix: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
distractedm1nd authored and sebasti810 committed Jul 8, 2024
1 parent e144bdc commit 42dfe7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/da.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,19 +229,14 @@ impl DataAvailabilityLayer for CelestiaConnection {
})?;
let blob = Blob::new(self.namespace_id.clone(), data.into_bytes())
.map_err(|_| DataAvailabilityError::GeneralError(GeneralError::BlobCreationError))?;
debug!("blob: {:?}", serde_json::to_string(&blob));
debug!("submitted blob with commitment {:?}", serde_json::to_string(&blob.clone().commitment).unwrap());
trace!("blob: {:?}", serde_json::to_string(&blob).unwrap());
match self
.client
.blob_submit(&[blob.clone()], GasPrice::from(-1.0))
.await
{
Ok(height) => {
debug!(
"Submitted epoch {} to DA layer at height {}",
epoch.height, height
);
Ok(height)
}
Ok(height) => Ok(height),
Err(err) => Err(DataAvailabilityError::NetworkError(format!(
"Could not submit epoch to DA layer: {}",
err
Expand All @@ -267,7 +262,7 @@ impl DataAvailabilityLayer for CelestiaConnection {
let height = extended_header.header.height.value();
match synctarget_buffer.send(height).await {
Ok(_) => {
debug!("Sent message to channel. Height: {}", height);
debug!("Sent sync target update to height {}", height);
}
Err(_) => {
DataAvailabilityError::SyncTargetError(
Expand Down
1 change: 1 addition & 0 deletions src/node_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ impl NodeType for LightClient {
loop {
// target is updated when a new header is received
let target = self.da.get_message().await.unwrap();
debug!("Updated sync target to height {}", target);
for i in current_position..target {
trace!("processing height: {}", i);
match self.da.get(i + 1).await {
Expand Down

0 comments on commit 42dfe7b

Please sign in to comment.