Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request from GHSA-3fp5-2xwh-fxm6
* imp(evm): Improve statedb commit efficiency * gomod2nix generate --------- Co-authored-by: tom <tomasguerraalda@hotmail.com>
- Loading branch information
Showing
10 changed files
with
192 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
08982b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@facs95 @GAtom22
I'd like to check your code commit history through GHSA-3fp5-2xwh-fxm6.
Regarding your fix, I have a question: why is it necessary to call
stateDB.Commit()
in theRun
function of thePrecompile
?As far as I understand, in the
ApplyMessageWithConfig
function of the evm module,stateDB.Commit()
will definitely be called after the transaction execution. So, would simply removing thestateDB.Commit()
logic from theRun
function of the precompiled contract be enough to fix this vulnerability?