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

[R4R] fix pipecommit issue #932

Merged
merged 2 commits into from
Jun 13, 2022

Conversation

forcodedancing
Copy link
Contributor

@forcodedancing forcodedancing commented May 29, 2022

Description

This pr will fix an issue, i.e., some account root is not correctly set when committing mpt ,during pipecommit.

Rationale

During pipecommit, the account root is populated as dummyRoot and will be corrected at several places. However, the previous code will skip some accounts during correction stage. This will lead to commit error when committing mpt.
This fix will correct the root for stateOjbect, which's account root length is zero.

Example

NA

Changes

Notable changes:

  • change CorrectAccountRoots function

Copy link
Collaborator

@unclezoro unclezoro left a comment

Choose a reason for hiding this comment

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

It will keep as dummy root?

unclezoro
unclezoro previously approved these changes May 31, 2022
@forcodedancing forcodedancing changed the title [WIP] fix pipecommit issue [R4R] fix pipecommit issue May 31, 2022
yutianwu
yutianwu previously approved these changes May 31, 2022
@setunapo
Copy link
Contributor

Another suggestion, commit description should add more detail to tell how it is fixed, better to avoid fix a bug

@forcodedancing
Copy link
Contributor Author

Another suggestion, commit description should add more detail to tell how it is fixed, better to avoid fix a bug

sure, let me refine it.

@bnb-chain bnb-chain deleted a comment from setunapo May 31, 2022
@forcodedancing forcodedancing reopened this Jun 1, 2022
setunapo
setunapo previously approved these changes Jun 1, 2022
@forcodedancing forcodedancing dismissed stale reviews from setunapo, yutianwu, and unclezoro via 34ac190 June 7, 2022 01:58
@unclezoro unclezoro merged commit 8537153 into bnb-chain:develop Jun 13, 2022
qinglin89 pushed a commit to qinglin89/bsc that referenced this pull request Jun 23, 2022
This was referenced Jul 28, 2022
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.

4 participants