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 nil statedb in diffsync #842

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

forcodedancing
Copy link
Contributor

@forcodedancing forcodedancing commented Apr 6, 2022

Description

There is a bug in diffsync - the error check of the creation of new statedb is too late, which could lead to panic. This pr tries to fix this bug.

Rationale

Error check should be done right after the creation of statedb.

Example

NA

Changes

Notable changes:

  • check the err in the correct location

@unclezoro unclezoro merged commit 343b315 into bnb-chain:develop Apr 6, 2022
Lippertt added a commit to Lippertt/Lipprtt that referenced this pull request Apr 6, 2022
j75689 pushed a commit to j75689/bsc that referenced this pull request Jun 15, 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.

None yet

5 participants