Skip to content

Conversation

@klkvr
Copy link
Member

@klkvr klkvr commented Dec 6, 2025

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2025

Your PR title doesn't follow the Conventional Commit guidelines.

Example of valid titles:

  • feat: add new user login
  • fix: correct button size
  • docs: update README

Usage:

  • feat: Introduces a new feature
  • fix: Patches a bug
  • chore: General maintenance tasks or updates
  • test: Adding new tests or modifying existing tests
  • bench: Adding new benchmarks or modifying existing benchmarks
  • perf: Performance improvements
  • refactor: Changes to improve code structure
  • docs: Documentation updates
  • ci: Changes to CI/CD configurations
  • revert: Reverts a previously merged PR
  • deps: Updates dependencies

Breaking Changes

Breaking changes are noted by using an exclamation mark. For example:

  • feat!: changed the API
  • chore(node)!: Removed unused public function

Help

For more information, follow the guidelines here: https://www.conventionalcommits.org/en/v1.0.0/

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

this makes a lot of sense and is way easier than what I previously attempted

smol suggestion and a doc nit

we might also want to take the avail cores into account here but unsure because rayon already handles the bridging based on available threads

Comment on lines +25 to +26
/// Raw transaction that can be converted to an [`ExecutableTxIterator::Tx`]
type RawTx: Send + Sync + 'static;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should highlight here that this can be anything as long as the the converter can map this into the Tx type

Comment on lines +352 to +359
while queue.first_key_value().is_some_and(|(idx, _)| *idx == next_for_execution)
{
let _ = execute_tx.send(queue.pop_first().unwrap().1);
next_for_execution += 1;
}
} else {
queue.insert(idx, tx);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd like to replace this with while over first_entry

Comment on lines +223 to 237
let iter = Either::Left(iter.into_iter().map(Either::Left));
let convert = move |tx| {
let Either::Left(tx) = tx else { unreachable!() };
convert(tx).map(Either::Left).map_err(Either::Left)
};

Ok((
iter,
Box::new(convert)
as Box<
dyn Fn(Either<_, _>) -> Result<Either<_, _>, _> + Send + Sync + 'static,
>,
))
}
BlockOrPayload::Block(block) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

since this step looks slightly confusing, I think some additional docs would be helpful here

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants