forked from axieinfinity/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: fix the EOA check of system transaction (axieinfinity#431
) The EOA check wants to make sure that the sender of system transaction has no code. The code hash of existing account that has no code is crypto.Keccak256Hash(nil). Meanwhile, an empty/non-existing account's code hash is 0x000...00. Currently, we miss the case for empty account, which makes the system transaction from empty account be rejected.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
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