Skip to content

Commit

Permalink
chore(rooch-da): handle latest done chunk ID retrieval
Browse files Browse the repository at this point in the history
Added comments to clarify its association with block numbers in the current ChunkV0 version.
  • Loading branch information
popcnt1 committed Jan 20, 2025
1 parent 2f9a699 commit 02089c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/rooch-da/src/actor/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ impl DAServerActor {
.zip(self.adapter_stats.iter())
{
let identifier = identifier.clone();
// Get the latest done chunk id
// (it's block number too for ChunkV0, which is the only version now)
let future = stat.get_latest_done_chunk_id();
let result = future.await; // Resolve the future
avail_backends.push((identifier, result));
Expand Down

0 comments on commit 02089c6

Please sign in to comment.