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

State hash calculation is interrupted and forcing node stopping sync in non-"FullState" mode #3455

Open
superboyiii opened this issue Aug 8, 2024 · 0 comments
Labels
Backlog Backlog issues and PRs bug Used to tag confirmed bugs

Comments

@superboyiii
Copy link
Member

Describe the bug
When setting FullState as false in StateService.json of StateService, that will not store every MPT data, but just calculate the latest State Root hash. However, I find it can be interrupted and throw exception which can force node stopping sync. But it works well when set FullState as true.

To Reproduce
Steps to reproduce the behavior:

  1. Prepare a testnet node, install MPTTrie and StateService
  2. Set FullState as false in StateService.json of StateService
  3. Run the node, wait for sometime.
  4. Error will be showed as:
    image

Expected behavior
Every State Root hash should be calculated correctly and be the same as FullState mode. It shouldn't be interrupted. It shouldn't stop node sync as well.

Screenshots
image

Platform:
winx64, neo master branch
@cschuchardt88 @shargon

@shargon shargon added the bug Used to tag confirmed bugs label Aug 8, 2024
@cschuchardt88 cschuchardt88 added the Backlog Backlog issues and PRs label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog Backlog issues and PRs bug Used to tag confirmed bugs
Projects
None yet
Development

No branches or pull requests

3 participants