Skip to content

Commit

Permalink
include confirmed blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed May 13, 2024
1 parent 4a0ff69 commit 973b8d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tangle/slot_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ impl<'a, I: InputSource> Slot<'a, I> {
.accepted_blocks(self.index())
.await?
.try_filter(|block_with_metadata| {
futures::future::ready(block_with_metadata.metadata.block_state == Some(BlockState::Finalized))
futures::future::ready(
block_with_metadata.metadata.block_state == Some(BlockState::Confirmed)
|| block_with_metadata.metadata.block_state == Some(BlockState::Finalized),
)
})
.and_then(|res| async {
let transaction = if let Some(transaction_id) = res
Expand Down

0 comments on commit 973b8d7

Please sign in to comment.