Skip to content

Conversation

@0xSooki
Copy link

@0xSooki 0xSooki commented Nov 8, 2025

fixes #19168

Batching additions:

  • Added batching for PrefetchProofs messages
  • Added batching for StateUpdate messages

Testing enhancements:

  • Added test_prefetch_proofs_batching to verify that multiple PrefetchProofs messages are correctly batched and processed as a single unit.
  • Added test_state_update_batching to ensure that multiple StateUpdate messages are merged and handled together as intended.

@mediocregopher
Copy link
Collaborator

@0xSooki looks like e2e tests are failing, can you take a look at why that might be? You should be able to run them locally, no need to wait for CI to find out if they're fixed or not.

@0xSooki
Copy link
Author

0xSooki commented Nov 11, 2025

Absolutely, working on it.

@0xSooki
Copy link
Author

0xSooki commented Nov 23, 2025

@mediocregopher done

Copy link
Collaborator

@mediocregopher mediocregopher left a comment

Choose a reason for hiding this comment

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

num_batched += 1;
}
Ok(other_msg) => {
let _ = self.tx.send(other_msg);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this message is a MultiProofMessage::StateUpdate, then I believe this will result in state updates being consumed in the incorrect order. Currently they must be consumed in the order they were produced, as that ultimately determines their sequence number and therefore the order they get sent to the state root task.

If there is a way to push to the front of a crossbeam channel then some kind of buffer local to function will need to be used.

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 24, 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.

perf: Drain and aggregate PrefetchProofs / StateUpdate messages

2 participants