Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

triedb/pathdb: fix tester generator #30972

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ceyonur
Copy link
Contributor

@ceyonur ceyonur commented Dec 30, 2024

There is a "rare" bug in test generator: If the run is very unlucky it can use modifyAccountOp / deleteAccountOp without creating any account, leading to have a trie root same as the parent.
This pull request includes a change to the generate function in the database_test.go file to ensure that account creation
always occurs first during the test iterations.

Changes in test logic:

  • triedb/pathdb/database_test.go: Modified the generate function to start with account creation in the first iteration, ensuring consistent initial conditions for the test.

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.

1 participant