Skip to content

Conversation

@LeoPatOZ
Copy link
Collaborator

Towards #52

.expect("pending blocks not supported");
// Check if in reorg recovery and past the reorg range
if reorg_ancestor.is_some_and(|a| last_log_block_num <= a) {
debug!(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im not sure this is useful since is expected internal state ?

Ok(ScannerMessage::Notification(Notification::ReorgDetected {
common_ancestor,
})) => {
debug!(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// since logs haven't been sent yet
}
Ok(ScannerMessage::Notification(notification)) => {
debug!(notification = ?notification, "Received notification");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notification gets streamed

) -> Result<Vec<Log>, RobustProviderError> {
let log_filter = log_filter.clone().from_block(*range.start()).to_block(*range.end());

match provider.get_logs(&log_filter).await {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed these are these are both streamed to the consumer so not sure how helpful logs here are

@LeoPatOZ LeoPatOZ closed this Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants