Skip to content

Conversation

@LeoPatOZ
Copy link
Collaborator

We have similar block range looping logic across the repo. This makes it so

  1. Its easier to have errors
  2. Harder to read the itention (i.e. looping 'foward' or 'backward')
  3. Smaller inconsistencies in implementation (i..e some places have logging some dont)

This PR abstracts away the looping logic so you just need to worry about streaming a batch and handling reorgs to address these issues

⚠️ THIS PR WAS MOSTLY AI GENERATED

add remained latest tests
ref: use take while
@LeoPatOZ
Copy link
Collaborator Author

Okay should be done re: size_hint

628aae6

Is this what you had in mind

Copy link
Collaborator

@0xNeshi 0xNeshi left a comment

Choose a reason for hiding this comment

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

Last change request, we can merge afterwards!

0xNeshi
0xNeshi previously approved these changes Dec 18, 2025
Copy link
Collaborator

@0xNeshi 0xNeshi left a comment

Choose a reason for hiding this comment

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

Good job!

@LeoPatOZ
Copy link
Collaborator Author

@0xNeshi Theres a bug we cant merge due to

"A conversation must be resolved before this pull request can be merged."

@0xNeshi
Copy link
Collaborator

0xNeshi commented Dec 18, 2025

Noticed it

@LeoPatOZ LeoPatOZ merged commit 87b7362 into main Dec 18, 2025
13 checks passed
@LeoPatOZ LeoPatOZ deleted the abstract-loop branch December 18, 2025 10:32
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.

3 participants