forked from ronin-chain/ronin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consortium-v2: prepare access list and transient storage in system tr…
…ansaction (#509) * consortium-v2: prepare access list and transient storage in system transaction In 5768525 ("core/state: remove newAccessList in SetTxContext"), we remove the access list reset in SetTxContext because later in statedb.Prepare we already reset the list. However, system transaction does not call to statedb.Prepare before processing transaction. This results in a consensus breaking change. This commit create a new access list reset function and adds to system transaction path to fix the issue. Moreover, we add the statedb.Prepare call to system transaction path after Shanghai to make EIP-3651: warm coinbase and EIP-1153 - Transient storage opcodes work correctly in system transaction. * consortium-v2: add access list and transient storage test for system transaction
- Loading branch information
Showing
3 changed files
with
108 additions
and
0 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
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
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