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

bugfix: code of difflayer not assgin before return #21

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

yasyzb
Copy link

@yasyzb yasyzb commented Apr 19, 2022

Description

Bugfix for diff layer may have nil code even there is a new smart contract created in the block.

Rationale

When doing Commit of StateDB, the difflayer is returned while the commmitTrie routine may assign the code of difflayer in the future.

This bug will impact the diff sync: difflayer may not contains the all changed codes.

@yasyzb yasyzb merged commit 588df8d into main Apr 19, 2022
@yasyzb yasyzb deleted the bugfix/code-difflayer branch April 19, 2022 06:44
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