Skip to content

[R4R] fix pipecommit issue#932

Merged
unclezoro merged 2 commits intobnb-chain:developfrom
forcodedancing:pipecommit_fix
Jun 13, 2022
Merged

[R4R] fix pipecommit issue#932
unclezoro merged 2 commits intobnb-chain:developfrom
forcodedancing:pipecommit_fix

Conversation

@forcodedancing
Copy link
Copy Markdown
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

@forcodedancing forcodedancing requested a review from unclezoro May 29, 2022 13:24
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

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

@forcodedancing
Copy link
Copy Markdown
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