Skip to content

[R4R] Fix nil statedb in diffsync#842

Merged
unclezoro merged 1 commit intobnb-chain:developfrom
forcodedancing:nil_statedb_issue
Apr 6, 2022
Merged

[R4R] Fix nil statedb in diffsync#842
unclezoro merged 1 commit intobnb-chain:developfrom
forcodedancing:nil_statedb_issue

Conversation

@forcodedancing
Copy link
Copy Markdown
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
Co-authored-by: forcodedancing <liguo.fudan@gmail.com>
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.

5 participants