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

Fix verifytrie does not block processing. #8070

Merged
merged 7 commits into from
Jan 21, 2025

Conversation

asdacap
Copy link
Contributor

@asdacap asdacap commented Jan 17, 2025

  • Made a mistake when passing verify trie code into world state manager.
  • The triestore passed in to verify trie must not be a read only triestore because that can't block.
  • Also remove ReadOnlyWorldStateManager.

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

  • Tested manually.

@asdacap asdacap requested a review from kamilchodola January 17, 2025 12:41
Comment on lines 46 to 49
if (processExitSource is not null)
{
_blockingVerifyTrie = new BlockingVerifyTrie(trieStore, GlobalStateReader, _readaOnlyCodeCb!, processExitSource!, logManager);
}
Copy link
Member

Choose a reason for hiding this comment

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

It is bit weird that it depends on if exitsource is passed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, it should have been just one void VerifyTrie(CancellationToken cancellation) and the exit source is handled outside.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved the exit source logic out.

@asdacap asdacap merged commit 3f525d5 into master Jan 21, 2025
79 checks passed
@asdacap asdacap deleted the fix/verifytrie-does-not-block branch January 21, 2025 02:29
mralj pushed a commit that referenced this pull request Feb 5, 2025
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