Skip to content

Commit

Permalink
add log, change Avail finality from 'finalized' to 'inBlock'
Browse files Browse the repository at this point in the history
  • Loading branch information
dimazhornyk committed Dec 19, 2024
1 parent 2de78aa commit 93670b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/node/da_clients/src/avail/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ impl RawAvailClient {
let status = sub.next().await.transpose()?;

if status.is_some() && status.as_ref().unwrap().is_object() {
if let Some(block_hash) = status.unwrap().get("finalized") {
if let Some(block_hash) = status.unwrap().get("inBlock") {
break block_hash
.as_str()
.ok_or_else(|| anyhow::anyhow!("Invalid block hash"))?
Expand Down
4 changes: 3 additions & 1 deletion core/node/da_dispatcher/src/da_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ impl DataAvailabilityDispatcher {
);

tokio::select! {
_ = subtasks => {},
_ = subtasks => {
tracing::debug!("DA dispatcher subtasks completed");
},
_ = stop_receiver.changed() => {
break;
}
Expand Down

0 comments on commit 93670b6

Please sign in to comment.