Skip to content

Conversation

@Rjected
Copy link
Member

@Rjected Rjected commented Nov 20, 2025

It's not safe to run the state root task or parallel state root anyways if there are not merkle changesets, so we disable it when we have no merkle changesets

Copy link
Member

@yongkangc yongkangc left a comment

Choose a reason for hiding this comment

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

Changes makes sense to me

Why is it not safe to run without change sets? Or what might be the case that it doesn't work

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 20, 2025
@Rjected Rjected force-pushed the dan/fix-error-zero-merkle-changesets branch from 16e4d47 to 3315a55 Compare November 20, 2025 01:38
@Rjected
Copy link
Member Author

Rjected commented Nov 20, 2025

Why is it not safe to run without change sets? Or what might be the case that it doesn't work

Because the DB might move between two db tx creations, in the case of a reorg this can lead to a situation where we can no longer get the correct trie state, for example the bugs that led to the creation of trie changesets in the first place

@Rjected Rjected force-pushed the dan/fix-error-zero-merkle-changesets branch from 3315a55 to 8e3e5ba Compare November 20, 2025 01:41
@Rjected
Copy link
Member Author

Rjected commented Nov 20, 2025

fixed clippy

Co-authored-by: Alexey Shekhirin <[email protected]>
Copy link
Collaborator

@shekhirin shekhirin left a comment

Choose a reason for hiding this comment

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

LGTM, @mediocregopher please take a look

@Rjected
Copy link
Member Author

Rjected commented Nov 24, 2025

closing, I think this is a bit of an edge case that we can continue to WARN / ERROR on, and this should naturally resolve itself after the node persists once

@Rjected Rjected closed this Nov 24, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done 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: Done

Development

Successfully merging this pull request may close these issues.

4 participants